mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 10:58:12 +08:00

The current situation could cause a transition on the button to end after/during modal has shown and causing the button to get focus again. Browsers would then refuse to switch focus. This is a kinda convulted solution, but it's a general purpose solution which doesn't involve changing anything in plugins/themes or core templates.