From faca17ff78c7bc498f9de3afee14353228075fc7 Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Sun, 20 Feb 2022 21:05:07 -0500 Subject: [PATCH] remove preventScroll option in fallback conditional --- src/components/dialog/dialog.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/dialog/dialog.ts b/src/components/dialog/dialog.ts index 67998dda2..90540abf9 100644 --- a/src/components/dialog/dialog.ts +++ b/src/components/dialog/dialog.ts @@ -179,7 +179,7 @@ export default class SlDialog extends LitElement { if (!hasPreventScroll) { const slInitialFocus = emit(this, 'sl-initial-focus', { cancelable: true }); if (!slInitialFocus.defaultPrevented) { - this.panel.focus({ preventScroll: true }); + this.panel.focus(); } }