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

🐛 Selecting a range preset inside a form element is forcing form submission #40

Open
superrnovae opened this issue Nov 26, 2024 · 0 comments
Labels
Type: Bug Something isn't working

Comments

@superrnovae
Copy link

Describe the bug
When datepicker is used inside a form element, selecting a preset will force form submission.

To Reproduce

  1. Create a form element with GET method
  2. Add the datepicker inside the form
  3. Pass presets via props
  4. Click on one of the presets

Expected behavior
The preset is selected, the form is not submitted.

Screenshots

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: Edge
  • Version: 1.0.9

Additional context
The on:click method on a preset button should call preventDefault() method to prevent form submission.

@superrnovae superrnovae added the Type: Bug Something isn't working label Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant