You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While using this plugin today I found a problem where if I had more than one timepicker on the page which used a button to open, it would not take into account all the timepickers. It would just bind it to the last one.
The problem line seems to be here (#280): $(button).bind("click.timepicker", function () {
I have gone ahead and quickly changed it to suit my application. As in, all my timepickers are contained in their own parent div element. It will use the input variable to bind the event, rather than inserting it straight into a jQuery selector object: input.parent().find(button).bind("click.timepicker", function () {
This is not the best solution and won't work for everyone, but I thought it would be helpful pointing out the issue.
Cheers, thanks for the plugin!
The text was updated successfully, but these errors were encountered:
Hey there,
While using this plugin today I found a problem where if I had more than one timepicker on the page which used a button to open, it would not take into account all the timepickers. It would just bind it to the last one.
The problem line seems to be here (#280):
$(button).bind("click.timepicker", function () {
I have gone ahead and quickly changed it to suit my application. As in, all my timepickers are contained in their own parent div element. It will use the input variable to bind the event, rather than inserting it straight into a jQuery selector object:
input.parent().find(button).bind("click.timepicker", function () {
This is not the best solution and won't work for everyone, but I thought it would be helpful pointing out the issue.
Cheers, thanks for the plugin!
The text was updated successfully, but these errors were encountered: