KittyGiraudel / a11y-dialog

A very lightweight and flexible accessible modal dialog script.
https://a11y-dialog.netlify.app
MIT License
2.42k stars 131 forks source link

Respect ignore-focus attribute when shown via focus event #583

Closed nowylie closed 1 year ago

nowylie commented 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.

See https://github.com/KittyGiraudel/a11y-dialog/issues/564#issuecomment-1730377629 for more context.

KittyGiraudel commented 1 year ago

Merged and released as part of https://github.com/KittyGiraudel/a11y-dialog/releases/tag/8.0.2. Thank you! :)

nowylie commented 1 year ago

Thanks! :)