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

onClose returns wrong value

Open ALEUT opened this issue 4 years ago • 1 comments

I'm Submitting a ...

[x] Bug report
[ ] Feature request
[ ] Support request

Steps to Reproduce

  1. Select any date
  2. Open datepicker and select another time
  3. onClose returns previous time

Expected Results

onClose returns the same as value

Actual Results

onClose returns wrong time

Minimal Reproduction of the Problem

https://codesandbox.io/s/fast-voice-92g2i?file=/src/App.js

Other Information (e.g. stacktraces, related issues, suggestions how to fix)

ALEUT avatar Nov 27 '21 12:11 ALEUT

This still appears to be the case. Any progress in fixing this bug? As there's a lot of overhead using the "onChange" callback instead of the "onClose"

Granaat avatar Apr 04 '23 16:04 Granaat