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

Multiple time pickers affect each other #115

Closed
michealharrington opened this issue Apr 12, 2018 · 1 comment
Closed

Multiple time pickers affect each other #115

michealharrington opened this issue Apr 12, 2018 · 1 comment

Comments

@michealharrington
Copy link

When there are multiple time pickers on the page, selecting a time on one will select the time on all other time pickers that are empty.

If I have 2 time pickers on screen and I select a time on time picker A and then clear it. Selecting a time on time picker B will give time picker A the same time, but with a date of 1900-01-01.

I fixed the problem locally by add context to the date picker's jquery selectors at lines lines 1553 and 1554

// as users may click this before making any adjustments to time, simulate time adjustment so that
// a value is selected
$('.dp_time_controls_increase td', timepicker).trigger('click');
$('.dp_time_controls_decrease td', timepicker).trigger('click');
@stefangabos
Copy link
Owner

Thank you!

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

2 participants