-
Notifications
You must be signed in to change notification settings - Fork 130
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
Prevent DateInput component from triggering form submissions #2772
Conversation
🦋 Changeset detectedLatest commit: 90cd405 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Size Change: +53 B (+0.01%) Total Size: 639 kB
ℹ️ View Unchanged
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2772 +/- ##
==========================================
+ Coverage 87.28% 87.29% +0.01%
==========================================
Files 214 214
Lines 12563 12575 +12
Branches 1687 1687
==========================================
+ Hits 10965 10977 +12
Misses 1545 1545
Partials 53 53
|
Purpose
When the DateInput component is rendered inside a
form
element, pressing the button to open the calendar picker erroneously triggers a form submission.Approach and changes
type="button"
attribute to allbutton
elements in the Calendar and DateInput componentsDefinition of done