Hacker0x01 / react-datepicker

A simple and reusable datepicker component for React
https://reactdatepicker.com/
MIT License
7.9k stars 2.23k forks source link

Fix #4514: 🐛 Retain the Time Input focus on change of the time input value #4798

Closed balajis-qb closed 1 month ago

balajis-qb commented 1 month ago

Closes #4514

Description

As mentioned in the linked issue, the input field is loosing it's focus whenever we try to edit the value using keyboard. As a result of it, it doesn't create a better User experience. After this change, user can able to change the value of the time input without loosing it's focus inbetween.

Changes

Screenshots

image

Contribution checklist

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 98.36%. Comparing base (610d001) to head (6142c27).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #4798 +/- ## ======================================= Coverage 98.36% 98.36% ======================================= Files 6 6 Lines 61 61 Branches 19 19 ======================================= Hits 60 60 Misses 1 1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.