Minor Changes
-
#72
c4c2c92Thanks @Sqrrl! - Addselection-modeprop with support for'single' | 'range' | 'multiple'.- New
'multiple'mode allows toggling any number of non-consecutive dates;selectDateemits an ascending-sorted array of ISO strings. - New
dateSelected,dateDeselectedanddatesSelectedlabels are announced by screen readers in'multiple'mode.datesSelectedsupports a{count}placeholder. aria-multiselectableis nowtruein both'range'and'multiple'mode.- Changing
selection-modeat runtime clears the current selection and emitsselectDatewithundefined.
Note: The
rangeprop is deprecated. Useselection-mode="range"instead.rangestill works but is ignored whenselection-modeis set. - New