-
Notifications
You must be signed in to change notification settings - Fork 329
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: return null for empty number and percent fields
Return null if the input of an ui-number-mask or ui-percentage-mask field is empty instead of returning undefined or an empty string. This has the advantage, that no additional check is required for null values inside of calculations (e.g. 5 + null === 5). null is also a valid number, where as an empty string is not. This is the same behavior as angular uses for input[number].
- Loading branch information
Micha Reiser
committed
Nov 19, 2015
1 parent
a93cf5a
commit 510584e
Showing
4 changed files
with
31 additions
and
3 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
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