All notable changes to this project will be documented in this file. Dates use ISO 8601 formatting, and version numbers follow Semantic Versioning.
The format is based on Keep a Changelog.
- Update trap focus logic to ignore hidden elements, selecting only visible focusable ones
- Informational debug statements for focus management
- Example JS now toggles
inerton<main>when a modal opens
- Remove the unnecessary
isToggleparameter type definition from the.d.tsfile.
- Improve overlayless modal close logic. Removed the
isToggleparameter fromremoveA11yEventsas it is no longer needed. The logic now works more smoothly, only unregisters modals inremoveA11yEventsinstead of the close handler wrapper, and preserves the overlayless modal bypass behavior
- Update documentation, method order and chaining, and debug statements
- Add missing parameter titles to
README.md.
- Unify
README.mdformatting for all bullet points. Previously, in some Markdown views, the bullet points format from theaddA11yEventsmethod was broken due to a code block. This has been corrected so everything now displays consistently.
- Fix typos, update changelog, and add an example wrapper usage for the
closeHandler.
- Support automatic modal key generation
- Add a manual method to rebind the trap focus handler
- Improve automation and simplify logic flow
- Improve event-bubbling guard by binding the overlay method with
capture: trueand removing the dependency on asynchronous behavior ande.stopPropagation - Extend
closeHandlermethod with a newmodalKeyparameter for caller usage
- Prevent overlayless modals from breaking the stacking order
- Improve
README.mdformat for usage section
- Update
package.jsonkeywords
- Update installation instructions for
README.md
- Initial release