Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

Fixed reset intent clearing bug #988

Merged
merged 1 commit into from
Oct 21, 2017

Conversation

kabbi
Copy link
Contributor

@kabbi kabbi commented Oct 21, 2017

It turns out, that when validateOn !== 'change' or when there is no validators, control component never cleared reset intent. This, in turn, means that when updateOn !== 'change' is set, control cannot be changed by user.
I've fixed this by always clearing the intent.
Fixes #982.

Feel free to suggest test improvements, I'm not sure this is currently done in optimal way. Should we check that text input is cleared instead (and is changeable by user after that)?

@kabbi kabbi force-pushed the fix-intent-clearing-bug branch from 0f31e62 to d6b9cf6 Compare October 21, 2017 13:13
@davidkpiano
Copy link
Owner

Thanks! I think this is fine for now. Did you try it with your original use case?

@davidkpiano davidkpiano merged commit d17e04c into davidkpiano:master Oct 21, 2017
@kabbi kabbi deleted the fix-intent-clearing-bug branch October 23, 2017 10:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reset intent on Control is not cleared when updateOn="blur"
2 participants