I’m running into a problem where the calls to focus() are jumping the scroll around on my page. Specifically in Chrome with the dialogs inside of a sticky header. Changing .focus() to .focus({ preventScroll: true }) fixes the issue.
I’d love to have a prevent-scroll attribute on the <details-dialog> to opt into this behavior.
I’m running into a problem where the calls to
focus()are jumping the scroll around on my page. Specifically in Chrome with the dialogs inside of a sticky header. Changing.focus()to.focus({ preventScroll: true })fixes the issue.I’d love to have a
prevent-scrollattribute on the<details-dialog>to opt into this behavior.