Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(...) input validations #958

Merged
merged 1 commit into from
Jul 25, 2018

Conversation

xomaczar
Copy link
Contributor

  1. For paper-input, validate only when its value changes.
  2. For paper-autocomplete, validate only when selection is changed.

1. For paper-input, validate only when value changes
2. For paper-autocomplete, validate when selection is made.
@xomaczar
Copy link
Contributor Author

^ @miguelcobain

@@ -110,7 +110,8 @@ module('Integration | Component | paper form', function(hooks) {
assert.notOk(isInvalidAndTouched);
});

this.$('input:first').trigger('blur');
await click('input:first-of-type');
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you change to a click + blur?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was changing the underlying code and left this in by mistake - I’ll go back and change it back to blur from test-helpers.
Although, not sure how blur can happen w/o first focus in event

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xomaczar just asked because there could be some reason I was missing.

@miguelcobain miguelcobain merged commit 9a840b9 into miguelcobain:master Jul 25, 2018
@miguelcobain
Copy link
Owner

@xomaczar this looks great. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants