Closed nowylie closed 1 year ago
Re-use the A11yDialog.maintainFocus() method to set focus when the dialog is shown so that the data-a11y-dialog-ignore-focus-trap attribute on the event target is respected.
A11yDialog.maintainFocus()
data-a11y-dialog-ignore-focus-trap
See https://github.com/KittyGiraudel/a11y-dialog/issues/564#issuecomment-1730377629 for more context.
Merged and released as part of https://github.com/KittyGiraudel/a11y-dialog/releases/tag/8.0.2. Thank you! :)
Thanks! :)
Re-use the
A11yDialog.maintainFocus()
method to set focus when the dialog is shown so that thedata-a11y-dialog-ignore-focus-trap
attribute on the event target is respected.See https://github.com/KittyGiraudel/a11y-dialog/issues/564#issuecomment-1730377629 for more context.