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

test(input): Minmaxlength databinding #5780

Closed
wants to merge 1 commit into from

Conversation

bwiklund
Copy link
Contributor

In some other threads we talked about testing for interpolated databinding in ngMaxLength / ngMinLength and I finally got around to it.

The databinding works fine, except if you change the length value without firing an input event. If I comment out the second calls to changeInputValueTo(...) below, the tests will fail.

How should we handle this?

observing min/maxlength attributes
@bwiklund
Copy link
Contributor Author

Just pinging this thread since it's fallen off, but reveals a bug in master.

I doubt many people are relying on being able to dynamically change min/maxlength, but is it worth it to somehow retrigger validation inside those $observe handlers?

@rodyhaddad
Copy link
Contributor

Related #1405

Edit: made a mistake with the PR number

@rodyhaddad rodyhaddad added this to the Backlog milestone Jun 10, 2014
@Narretz
Copy link
Contributor

Narretz commented Jul 7, 2014

This was introduced in 26d91b6

@Narretz Narretz closed this Jul 7, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants