mirror of
https://github.com/zulip/zulip.git
synced 2026-07-12 21:04:41 +08:00
Hiding and instantly showing a modal causes a race condition in Bootstrap since `hide` and `show` calls are asynchronous. See https://getbootstrap.com/docs/4.0/components/modal/#methods Instead, use `overlays.open_modal` which prevents background mouse events when a modal is present. This prevents a user from maybe accidentally clicking on another deactivate button while a modal is present. This also prevents a black screen caused due to this race condition. And since a user can't click on the button while the modal is present, it doesn't make sense to hide it before showing it. So, remove the `hide` call. Fixes #17297 |
||
|---|---|---|
| .. | ||
| assets | ||
| audio | ||
| generated | ||
| html | ||
| images | ||
| js | ||
| shared | ||
| styles | ||
| templates | ||
| third | ||
| .gitignore | ||