i set the trigger on a button to open it. (it should be only open up by click this button)
but when the page load for first time/ or you refresh the page each time,
you click anywhere else on the page for first time, the popup modal will show up.
after the first time, it goes working correct.
This is exactly how it is intended to work.
Clicking anywhere on the page will trigger the modal.
So you don’t want to have any other specific trigger other than your block.