Skip to content

Releases: rynpsc/dialog

v5.0.2

03 Jan 09:41
Compare
Choose a tag to compare
  • Fixed incorrect isOpen property.

v5.0.1

26 Dec 12:27
Compare
Choose a tag to compare
  • Fixed event names in on and off methods

v4.2.0

28 Oct 20:48
Compare
Choose a tag to compare

Added

  • Added the id property to access the instances id.

v4.1.1

21 Sep 07:46
Compare
Choose a tag to compare

Fixed

  • Fixed issue with incorrect event target when using domapi.

v4.1.0

18 Sep 20:53
Compare
Choose a tag to compare

Changed

  • The 'dialog' prefix is no longer required when using the on and off methods.

v4.0.0

18 Sep 20:29
Compare
Choose a tag to compare

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

21 Jun 10:19
Compare
Choose a tag to compare

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 with create().
  • Removed focus option, autofocus element should now be defined using the data-dialog-autofocus attribute.

v2.1.0

20 May 06:36
Compare
Choose a tag to compare

Changed

  • Added aria-hidden attribute to main and dialog elements.

v2.0.0

10 Sep 09:45
Compare
Choose a tag to compare

Removed

  • Removed onCreate, onDestroy, onOpen and onClose callbacks.

Added

  • Added create, destroy, open and close events.
  • Added event subscription via on and off methods.

v.1.2.0

30 Apr 15:15
Compare
Choose a tag to compare

Added

  • Added onCreate callback
  • Added onDestroy callback