Bug fixes and added tests
-
Bug fixes:
- In an attempt to keep
value
property up-to-date, it used to reset itsvalue
property with every change to any of its attributes. And when the element is two-way-data-bound using for example Polymer, these updates were reflected to themodel
(as in<juicy-select options="{{model.Countries}}" value="{{model.value}}">
). This caused updates to have side-effects, especially in an async environment. If you changemodel.Countries
in any way,model.value
would be updated unintenionally. Potentially causing data-loss or keeping outdated data after it's due. - It didn't remove
change
event listener from the native<select>
element inside it upon detachment. Now it does.
- In an attempt to keep
-
Added tests: Now the element has some tests that definetly can be expanded. But are enough to enable CI.