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

setEndTime and setStartTime not replacing manually set time #245

Open
nt294 opened this issue May 14, 2024 · 0 comments
Open

setEndTime and setStartTime not replacing manually set time #245

nt294 opened this issue May 14, 2024 · 0 comments

Comments

@nt294
Copy link

nt294 commented May 14, 2024

Describe the bug
If you manually set the time on the picker using the dropdown menu, calling picker.setStartTime or picker.setEndTime will not override what has been selected while the picker is open.

To Reproduce
Steps to reproduce the behavior:

  1. Create a picker with the Range, Time and Preset plugins
  2. Open the picker and manually change the time using the dropdown menu
  3. Call picker.setStartTime or picker.setEndTime (I am listening for a click event on a preset button to do this, as per PresetPlugin with TimePlugin activated does not support setting times #80, but it doesn't seem to matter from where its called)

Expected behavior
picker.setStartTime or picker.setEndTime will trigger, but will not update the display; only closing and reopening the picker causes the selected time to change.

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