I have tested all possible ways, and it randomly shows up no matter how you implement it. I cannot seem to find a pattern, but my guess is that it’s some kind of race condition when hiding that overlay.
We use confirmation modals for some critical actions and have been having multiple merchant reports.
Another example here using commandFor only.