react-flatpickr icon indicating copy to clipboard operation
react-flatpickr copied to clipboard

First keystroke on highlighted time input is not picked up

Open cephirothdy2j opened this issue 7 years ago • 0 comments

See the attached GIF. The log represents the value of the minutes input span tag. In this GIF I am ...

  1. Clicking the minute input to highlight its text
  2. Hitting the "1" key. This happens in the GIF when you see the text un-highlight and the cursor moves to the end of the input. However, my keystroke is not reflected in the input's value.
  3. On subsequent keypresses, the "1" is picked up.

The expected behavior is that, when the text is highlighted, any keystokes would overwrite the current value. This seems to be a problem only with the React component, not with Flatpickr itself.

react-flatpickr-issue

cephirothdy2j avatar Nov 08 '17 19:11 cephirothdy2j