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

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.

@xomaczar xomaczar force-pushed the fix/input-validation branch from ce63371 to 1340a0c Compare July 20, 2018 20:30
1. For paper-input, validate only when value changes
2. For paper-autocomplete, validate when selection is made.
@xomaczar xomaczar force-pushed the fix/input-validation branch from 1340a0c to 21de17c Compare July 20, 2018 20:32
@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
Collaborator

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
Collaborator

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 adopted-ember-addons:master Jul 25, 2018
@miguelcobain
Copy link
Collaborator

@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.

2 participants