The same issue has occurred in our applications since last week. The Action Button doesn't trigger any associated query when clicked in the edit mode.
One workaround is to create a costume column and set it to be the Button column type and links the query to the button.
Hmm I tried following the steps laid out by @vangelov but wasn't able to repro the bug. Inside the modal or not the button behaves similarly in edit and preview mode; I'm able to click once and the JS query triggers.
I'll check-in with my teammates and see if they can try and reproduce it on their instances and circle back with you guys. Hang tight!