Skip to content

Pointers always point to default time even after time updated #114

@MalikaN

Description

@MalikaN
<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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions