Skip to content

Conversation

arthurdenner
Copy link
Owner

What kind of change does this PR introduce?

Fixes #806.

What is the current behavior?
Buttons inside <form> inherit type="submit" implicitly, which triggers the submit handler.

What is the new behavior?
All buttons in the calendar have type="button".

Checklist:

  • Documentation
  • Tests
  • Ready to be merged

@codecov
Copy link

codecov bot commented Nov 11, 2022

Codecov Report

Base: 95.25% // Head: 95.44% // Increases project coverage by +0.18% 🎉

Coverage data is based on head (ff25b05) compared to base (b19de04).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #807      +/-   ##
===========================================
+ Coverage    95.25%   95.44%   +0.18%     
===========================================
  Files           16       16              
  Lines          527      527              
  Branches       102      105       +3     
===========================================
+ Hits           502      503       +1     
+ Misses          25       24       -1     
Impacted Files Coverage Δ
src/__tests__/_utils.tsx 100.00% <ø> (ø)
src/components/button.tsx 100.00% <ø> (ø)
src/components/today-button.tsx 100.00% <ø> (ø)
src/components/calendar/calendar.tsx 100.00% <100.00%> (ø)
src/components/cell/cell.tsx 100.00% <100.00%> (ø)
src/components/icon.tsx 100.00% <100.00%> (ø)
src/components/input.tsx 100.00% <100.00%> (ø)
src/pickers/range.tsx 87.87% <0.00%> (+1.51%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@arthurdenner arthurdenner merged commit 995c185 into develop Nov 11, 2022
@arthurdenner arthurdenner deleted the fix/type-button branch November 11, 2022 14:28
@github-actions
Copy link

🎉 This PR is included in version 2.17.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

Today button triggers form onSubmit
1 participant