fix: reappearing of dialog should add body scrolling class (#1602)

When dialog is reappeared after being in a hidden state. Then reappeaning should block further body scrolling for consistent UX.
pull/1609/head
deeshu 2 years ago committed by GitHub
parent dbb544dc92
commit 884dca20b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -145,6 +145,7 @@ function showAskAIDialog() {
if (dialogElement) {
dialogElement.classList.remove("showoff");
dialogElement.classList.add("showup");
document.body.classList.add("overflow-hidden");
} else {
generateDialog(
{

Loading…
Cancel
Save