Releases: rynpsc/dialog
Releases · rynpsc/dialog
v5.0.2
v5.0.1
v4.2.0
v4.1.1
v4.1.0
v4.0.0
Added
- Added the
element
property. - Add the ability to set the focused element when calling
close()
. - Added the ability to unmount the domapi.
- Added ability to access the elements being watched by the domapi.
Changed
- The domapi now needs to be explicitly mounted.
- The default browser action is now prevented when using the domapi.
- The element passed into
open()
is now the element that gets focused on open.
Removed
- Removed the
elements
property.
v3.0.0
Added
- Added basic data attribute API.
- Added ability to cancel opening and closing via
event.preventDefault
. - Added
initiated
property to dialog instance.
Changed
- Now uses
aria-modal="true"
and aligns with WAI-ARIA Authoring Practices 1.1. - Events now use the native CustomEvent API.
- Event names are now prefixed with
dialog:
. - No longer provides a default export, use
import { dialog } from @rynpsc/dialog
instead.
Removed
- Removed
main
parameter from constructor. - Removed
autoInit
option, dialogs must now be manually created withcreate()
. - Removed
focus
option, autofocus element should now be defined using thedata-dialog-autofocus
attribute.