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

improvement: clearing DateTimeInput #705

Merged
merged 1 commit into from
Jan 16, 2024

Conversation

gidomanders
Copy link
Member

Manually clearing the input doesn't work. Only of you clear the input and change the date and clear it a second time, the value is actually cleared.

Added clear button to clear the input as manually clearing the input is an issue within the react-datetime library that is not updated anymore. This allows for the DateTimeInput to support undefined in onChange.

Closes #704

@gidomanders gidomanders force-pushed the improvement/datetimeinput-clear-value branch 2 times, most recently from 39f593d to c2b5f5a Compare January 16, 2024 19:55
Manually clearing the input doesn't work. Only of you clear the input
and change the date and clear it a second time, the value is actually
cleared.

Added clear button to clear the input as manually clearing the input is
an issue within the react-datetime library that is not updated anymore.
This allows for the DateTimeInput to support undefined in onChange.

Closes #704
@gidomanders gidomanders force-pushed the improvement/datetimeinput-clear-value branch from c2b5f5a to 7dc0b60 Compare January 16, 2024 20:21
Copy link

codecov bot commented Jan 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5bf5e60) 100.00% compared to head (7dc0b60) 100.00%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #705   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          131       131           
  Lines         2771      2781   +10     
  Branches       817       824    +7     
=========================================
+ Hits          2771      2781   +10     
Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gidomanders gidomanders merged commit daca395 into master Jan 16, 2024
6 of 7 checks passed
@gidomanders gidomanders deleted the improvement/datetimeinput-clear-value branch January 16, 2024 20:31
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.

DateTimeInput unable to clear value
1 participant