Closed jansivans closed 6 years ago
I'm thinking we should pass a parameter which defines what value should cause a clear - based on the proposed logic anything falsy could clear the dropdown. Things like 0 and false may be valid values.
I have added value == null
check. This will catch null
and undefined
values.
ignoreUpdate
fromwatcher
function and added check for current model value instead.element.dropdown('clear')
triggering if null value is selected in dropdown.sm-core.js
andsm-dropdown.js
files. Now if you set your model to null, changes will be correctly applied.Fixes such issues as #26 and #14