It happens because the web dialog still has the input focus instead of the main modeling window.
This is a known issue.
Search this category for “focus” and you’ll find discussions … and perhaps hacky workarounds.
A search reveals …
These issues have been opened in the issue tracker …
1 Like