3

I'm having trouble getting angularjs form validation to work in Chrome. I have a super simple example plunker that illustrates the issue. If you enter non-numeric data into the box and click the button, it still says the form is valid in Chrome. But if you do that in Firefox, it shows it as invalid which is what I would expect. What's going on here?

Thanks,

Andy

1 Answer 1

1

Looks like a bug with AngularJS and Chrome, try to add required to the input and it should work:

<input type="number" step="any" name="someNumber" ng-model="someNumber" required />

Here's a plunker to test it.

This is the open issue on AngularJS.

Sign up to request clarification or add additional context in comments.

1 Comment

FYI - this is not an issue anymore (i know, its an old post, but still figured I'd mention :D)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.