Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Input validation with ng-required function not compatible across different browsers. #4945

Closed
@jonricaurte

Description

@jonricaurte

I have a form with input validation that also uses an ng-required function to determine if the input is required.

http://plnkr.co/edit/sBSkkaR6UCPodKxlQBf7?p=preview

Steps to reproduce:

  1. Type "a" into input
  2. delete "a" from input

In angular 1.1.5, after you delete "a" from input you can see that in chrome validateCharacters shows undefined and then in the required function shows an empty string. However, in Firefox and IE there is an empty string in validateCharacters and then in the required function it is undefined. If you update to angular 1.2, then Firefox and Chrome are the same but IE is still the old way:

http://plnkr.co/edit/trECTGaXRo5QVWeYTTdV

Is there any workaround for this?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions