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

Pointers always point to default time even after time updated

Open MalikaN opened this issue 6 years ago • 0 comments

<TimePicker
 id={section}
 trigger={this.getTrigger(section)}
 {...this.props}
 focused={focused}
 meridiem={meridiem}
 timeMode='12'
 onFocusChange={this.onFocusChange(section)}
 onTimeChange={this.onTimeChange(section)}
 time={hour && minute ? '6:20' : '5:45'}
/>

During the initial render the pointers are on the correct position like so

Screen Shot 2019-07-07 at 9 22 59 PM

I have an edit function which updates the time to 6:20. and even then the pointers are on the initial positions even though the time values are updated.

Screen Shot 2019-07-07 at 9 25 01 PM

MalikaN avatar Jul 07 '19 15:07 MalikaN