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 Nov 24, 2018. It is now read-only.
in FF in input='number' angular validation fired first when enter letters and i am getting empty message.
temp solution
angular.module(app_name).factory('numberOnlyValidator', function () {
return {
name: 'numberOnly', // this is the validator name that can be referenced from the constraints JSON
validate: function (value) {
// value: the value to validate
// arguments: the validator arguments
return /^[1-9]\d*(\.\d+)?$/.test(value);
}
};
});
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
in FF in input='number' angular validation fired first when enter letters and i am getting empty message.
temp solution
The text was updated successfully, but these errors were encountered: