Added
- Added the ability for checkbox input elements to set bound signals to an array of values by predefining the signal as an array (#664).
Changed
- Updated Idiomorph to version 0.7.2.
- When using
data-bind
on an element, the signal value now defaults to the element’svalue
attribute, provided the signal has not already been defined (#685). - The expression passed into
data-on-signals-change
is no longer executed on page load (#682). - Whitespace is now maintained in merged fragments (#658).
- Attribute plugins now define a hash of their contents, preventing duplicate applies (#691).
- Attribute plugins are now applied to the
html
element instead of thebody
element (#691).
Fixed
- Fixed a bug in which
datastar-remove-fragments
events were not having any effect (#664). - Fixed a bug in which
datastarNaN
could be used as an auto-generated element ID (#679). - Fixed a bug in which
data-attr
was not removing the element attribute when using object syntax and the value wasfalse
(#693).
Removed
- Removed the Datastar class. The
apply
,load
, andsetAlias
functions are exported instead.