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(Chips): set type in order to prevent unexpected behaviour #658

Merged
merged 2 commits into from
Jun 20, 2023

Conversation

diegomarcuz
Copy link
Contributor

Description 📄

When using the Chips component, I expected the default behavior should do a normal click, but as it does not have the type declaration it was doing unexpected behavior like submitting a form as this component is a simple button, under the hood, it is expected to be type="button" even though is possible to override this config.

Platforms 📲

  • Web
  • Mobile

Type of change 🔍

  • Bug fix (non-breaking change which fixes an issue)

Checklist: 🔍

  • My code follows the contribution guide of this project Contributing Guide
  • I have performed a self-review of my own code
  • My changes generate no new warnings
  • New and existing unit tests pass locally with my changes
  • I have checked my code and corrected any misspellings

@diegomarcuz diegomarcuz force-pushed the fix/prevent-unexpect-behaviour branch from 563cf06 to 1a3e7bb Compare June 18, 2023 22:41
@matheushdsbr matheushdsbr merged commit 262547c into master Jun 20, 2023
@matheushdsbr matheushdsbr deleted the fix/prevent-unexpect-behaviour branch June 20, 2023 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants