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.
This commit is contained in:
deeshu 2023-04-27 04:46:15 +05:30 committed by GitHub
parent dbb544dc92
commit 884dca20b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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