Files
zulip/static/js
Ganesh Pawar a3e36ac830 settings_ui: Use overlays.open_modal in user deactivation settings.
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
2021-04-07 15:19:41 -07:00
..
2021-03-12 10:08:25 -08:00
2021-03-12 10:08:25 -08:00
2021-03-12 10:08:25 -08:00
2021-03-12 10:08:25 -08:00
2021-03-12 10:08:25 -08:00
2021-03-26 16:32:25 -07:00
2021-03-12 10:08:25 -08:00
2021-03-12 10:08:25 -08:00
2021-03-12 10:08:25 -08:00
2021-03-12 10:08:25 -08:00
2021-03-12 10:08:25 -08:00
2021-03-12 10:08:25 -08:00
2021-03-12 10:08:25 -08:00
2021-03-12 10:08:25 -08:00
2021-03-12 10:08:25 -08:00
2021-03-12 10:08:25 -08:00