Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MalikaN opened this issue Jul 7, 2019 · 0 comments
Open

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

MalikaN opened this issue Jul 7, 2019 · 0 comments

Comments

@MalikaN
Copy link

MalikaN commented Jul 7, 2019

<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 MalikaN changed the title Pointers always points to default time even after time updated Pointers always point to default time even after time updated Jul 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant