mirror of
https://github.com/discourse/discourse.git
synced 2025-02-24 23:49:38 +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.