Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ui-number-mask): show "0" if model is 0
Show 0, instead of undefined, if the model value has changed to 0. When ui-number-mask="0" is used and the model changes the value to 0, then undefined is displayed in the input field. The cause of the error is, that clearDelimitersAndLeadingZero does not only clear leading zeros, but also a single 0 (what is equal to the vaue 0). -> Do not strip a single 0. Closes ##111
- Loading branch information
Micha Reiser
committed
Nov 19, 2015
1 parent
a93cf5a
commit 1bae78c
Showing
2 changed files
with
15 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters