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

Set type attribute of the clear button to "button" #1351

Merged
merged 1 commit into from
Apr 9, 2018
Merged

Set type attribute of the clear button to "button" #1351

merged 1 commit into from
Apr 9, 2018

Conversation

manubo
Copy link
Contributor

@manubo manubo commented Apr 9, 2018

A button in a form gets the type attribute set to submit by default, if the type is not specified.
Submitting a form with a clearable datepicker component by pressing enter in a field currently triggers the clearing of the datepicker component, instead of submitting the form.
This can be fixed by setting the type attribute of the clear button to "button".

A button in a form gets the type attribute set to submit by default, if the type is not specified.
Submitting a form with a clearable datepicker component by pressing enter in a field currently triggers the clearing of the datepicker component, instead of submitting the form.
This can be fixed by setting the type attribute of the clear button to "button".
@codecov
Copy link

codecov bot commented Apr 9, 2018

Codecov Report

Merging #1351 into master will increase coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1351      +/-   ##
==========================================
+ Coverage    89.1%   89.13%   +0.02%     
==========================================
  Files          15       15              
  Lines        1056     1058       +2     
  Branches      171      171              
==========================================
+ Hits          941      943       +2     
  Misses         22       22              
  Partials       93       93
Impacted Files Coverage Δ
src/index.jsx 91.58% <ø> (+0.07%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3b1efbe...f86a8e4. Read the comment docs.

@rafeememon rafeememon merged commit 83cf74f into Hacker0x01:master Apr 9, 2018
Squar89 pushed a commit to Squar89/react-datepicker2 that referenced this pull request Apr 10, 2019
Set type attribute of the clear button to "button"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants