Skip to content

Support removing Event Listener & avoid initializing multiple times #18

@alfonsrv

Description

@alfonsrv

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions