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

Support removing Event Listener & avoid initializing multiple times #18

Open
alfonsrv opened this issue Jan 4, 2022 · 0 comments
Open

Comments

@alfonsrv
Copy link

alfonsrv commented Jan 4, 2022

Describe the bug
When triggering multiple initializations on the same element, NJTimePicker won't check whether or not an instance is already associated and will simply create a new one. This can cause one element to spawn multiple NJTimePickers overlaying each other when clicking the input field.

Expected behaviour
When NJTimePicker is already initialized for an element, it should not be initialized again. Similarly an easy method of removing a NJTimePicker like NJTimePicker.remove("#timepicker") would be nice-to-have.

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