-
Notifications
You must be signed in to change notification settings - Fork 42
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
Removable chips type now defaults to button #2124
Conversation
🦋 Changeset detectedLatest commit: 984d4f6 The changes in this PR will be included in the next version bump. This PR includes changesets to release 7 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Endringer til review: 7d82bf4f9f | 46 komponenter | 289 stories |
Nok en grunn til at vi burde bygge noen eksempel-sider (inkludert skjema-maler) vi kan teste komponentene våre i, for dette er ikke første gangen vi har bommet på noe sånt. 🤦 Tror til og med vi diskuterte dette på et tidspunkt... Har selv vurdert å foreslå |
Jeg synes en helt generell Button-komponent burde holde seg til specen og defaulte til |
…ld always be a button, and it is not currently used in any other way. The reason for making this change now, is that we put type="button" on the Chip.Removable to prevent a submit event when the chip is clicked inside a form.
I HTML er buttons by default
type="submit"
, noe som gjør at removable chips i combobox submitter skjemaet de ligger i. Vet ikke om dette er den beste løsningen, men det burde fikse problemet. :)