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

Updating showTimeSelect dynamically doesn't render the time select dropdown

Open Trapsta opened this issue 2 years ago • 2 comments

Describe the bug Setting showTimeSelect to true dynamically when initialized with showTimeSelect = false in the inline version doesn't render the time picker but you can toggle the time select on and off if you initially set it to true.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://codesandbox.io/s/hardcore-williams-1vp2di?file=/src/App.js
  2. Click on Toggle Time Picker button
  3. Observe that the time select dropdown is not rendered

Expected behavior I expect you would be able to toggle it on when initialized from showTimeSelect = false

Trapsta avatar Jun 06 '22 06:06 Trapsta

@martijnrusschen Can you confirm this behavior so that we can fix it? Can showTimeSelect = false be a valid usage of the property ?

shreekeshmurkar avatar Jun 08 '22 08:06 shreekeshmurkar

It should be nice if we could have this fixed.

jovana avatar Apr 29 '24 13:04 jovana