Skip to content
New issue

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

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

Already on GitHub? # to your account

Prevent submitting a form when clicking clear in paper-autocomplete #1089

Merged
merged 1 commit into from Jun 5, 2019
Merged

Conversation

ghost
Copy link

@ghost ghost commented Jun 5, 2019

Problem:
When using the paper-autocomplete inside of a form, its clear button is triggering the forms submit action. This is called because the button defaults to type="submit" inside of a form.

Changes:

  • update the paper-reset-button type to button to avoid the default of
    type="submit" when inside a form
  • add tests for paper-reset-button and paper-autocomplete components

- update the paper-reset-button type to button to avoid the default of
  type="submit" when inside a form
- add tests for paper-reset-button and paper-autocomplete components
@miguelcobain miguelcobain merged commit 513e3b0 into adopted-ember-addons:master Jun 5, 2019
@miguelcobain
Copy link
Collaborator

💯 !
Thank you.

@ghost ghost deleted the fix-paper-autocomplete-clear-button branch June 5, 2019 16:47
@ghost
Copy link
Author

ghost commented Jun 5, 2019

Thank you for merging. 😄

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

Successfully merging this pull request may close these issues.

2 participants