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

add on icon click handler #165

Open
jstrimpel opened this issue Oct 10, 2013 · 0 comments
Open

add on icon click handler #165

jstrimpel opened this issue Oct 10, 2013 · 0 comments

Comments

@jstrimpel
Copy link

The click handler that is being bound here, https://github.com/jdewit/bootstrap-timepicker/blob/gh-pages/js/bootstrap-timepicker.js#L42, assumes that there will be only one add on and that it should show the time picker widget. I have a case in which there are 2 add ons. One should trigger the widget and the other should clear the input. This implementation does not provide a way for me to stop the event from bubbling. I understand that this was done because you did not want to enforce an add on icon type, but it makes the assumption that there is only 1 and that this is the desired behavior.

If you want to change this please let me know and I can submit a pull request for making this behavior configurable via the options hash.

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