Unverified Commit 884dca20 authored by deeshu's avatar deeshu Committed by GitHub

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.
parent dbb544dc
......@@ -145,6 +145,7 @@ function showAskAIDialog() {
if (dialogElement) {
dialogElement.classList.remove("showoff");
dialogElement.classList.add("showup");
document.body.classList.add("overflow-hidden");
} else {
generateDialog(
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment