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
Using the two directives together, when I focus on input and type the "-" sign before typing any number, it does not let me type any number. For both directives to work together, I need to enter the number first and only then put the minus sign, this to the user is horrible.
Edit the parse function in the src/global/percentage/percentage.js file
...
var actualNumber = parseFloat(modelMask.apply(valueToFormat));
if (isNaN(actualNumber)) { // ADD THIS CONDITION TO FIX THE PROBLEM
actualNumber = parseFloat(modelMask.apply(value.replace(/[^0-9]/g,'')))
valueToFormat = PreFormatters.clearDelimitersAndLeadingZeros(value) || '0'
formatedValue = viewMask.apply(valueToFormat) + percentageSymbol;
}
if (angular.isDefined(attrs.uiNegativeNumber)) {
...
Using the two directives together, when I focus on input and type the "-" sign before typing any number, it does not let me type any number. For both directives to work together, I need to enter the number first and only then put the minus sign, this to the user is horrible.
The text was updated successfully, but these errors were encountered: