You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 16, 2021. It is now read-only.
I have some ideas for little enhancements which I also could try to implement.
trim result of Selectivity.prototype.template
Reason:
eg if custom dropdown template is provided and it has empty string in the begining(before root element), then it results in js error.
clear method with options parameter same as setData -> options.triggerChange
Reason:
Now if I want to clear data without calling change event, i have to do it by hand(setData). In single and multiple inputs it looks a little bit different.
single-> setData(null) -------> at first i just did setData() which results in an error
multiple -> setData([])
It would be nice to have consistent api for it -> clear({triggerChange: boolean}).
I guess that in the future it is possible that setData would pass eg undefined for clearing purpose, so I think it's not such bad idea to hide this implementation detail.
What do you think about it?
The text was updated successfully, but these errors were encountered:
I have some ideas for little enhancements which I also could try to implement.
Reason:
eg if custom dropdown template is provided and it has empty string in the begining(before root element), then it results in js error.
Reason:
Now if I want to clear data without calling change event, i have to do it by hand(setData). In single and multiple inputs it looks a little bit different.
single-> setData(null) -------> at first i just did setData() which results in an error
multiple -> setData([])
It would be nice to have consistent api for it -> clear({triggerChange: boolean}).
I guess that in the future it is possible that setData would pass eg undefined for clearing purpose, so I think it's not such bad idea to hide this implementation detail.
What do you think about it?
The text was updated successfully, but these errors were encountered: