-
Notifications
You must be signed in to change notification settings - Fork 27.4k
fix(input): keep track of min/max attrs on-the-fly #4553
Conversation
Now input[type=button] keeping track of both min and max attrs ever if they change over time.
Thanks for the PR!
If you need to make changes to your pull request, you can update the commit with Thanks again for your help! |
CLA / Real name is Dmitry Shirokov deadrunk@gmail.com |
LGTM @matsko this is assigned to you. are you waiting for something before merging it? I'm not going to merge it now in case you are waiting for something... |
@IgorMinar Yup. Merging it now. At the time I couldn't verify the CLA thing. |
MERGED |
Landed as 4b653ae |
This does not re-validate the value when changing min/max. If i change min/max the control is still valid even if the value is out of range. |
And input[type=button] ? |
@quazzie could you show your code please? On the jsfiddle or somewhere else. |
@quazzie I figured out why this worked for me - I changed the model's value at the same time with the min's value. It triggers the |
@runk yeah that's maybe a nicer way to do it. But please add the tests. |
Yeah, sure @quazzie. It looks like that tests work fine. |
Now input[type=button] keeping track of both min and max attrs even if they change over time.