mirror of
https://github.com/zulip/zulip.git
synced 2025-11-19 05:58:25 +00:00
Rapidly clicking a button that shows a modal cause a race condition in Bootstrap. Specifically, Bootstrap adds an "in" class to a modal on the "shown" event and removes it on the "hide" event. Frequent clicks cause the "hide" event to trigger before the "shown" event. Therefore, the "in" class isn't removed. We use the "in" class to check if a modal is active in overlays.js For now, we manually remove it once the modal is hidden. Newer versions of Bootstrap probably handle this better internally. Look into removing this once it's upgraded. Fixes #15463
36 KiB
36 KiB