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 was archived by the owner on Oct 2, 2019. It is now read-only.
When using allow-clear, it changes the value to "undefined" which is not always the wanted behaviour.
Could it be possible to add something like: allow-clear-value="0" (and obviously show placeholder or nothing when model is that value)
Would it be more "correct" to refactor my code to work with undefined?
Greetings.
The text was updated successfully, but these errors were encountered:
Explanation: in 0.9.9, choosing allow-clear removes the model from the array it is in which creates all kind of issues, we need to be able to specify whether it will be 0 or an empty string or undefined or whatever.
Been dabbling inside the code but it's a level above my head.
Closing this as I believe this can be resolved by creating a custom directive to add a formatter for the ng-model which can be used to interpret the undefined value as the user sees fit.
When using allow-clear, it changes the value to "undefined" which is not always the wanted behaviour.
Could it be possible to add something like: allow-clear-value="0" (and obviously show placeholder or nothing when model is that value)
Would it be more "correct" to refactor my code to work with undefined?
Greetings.
The text was updated successfully, but these errors were encountered: