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

Calling init() several times breaks if adding a listener to element that already has a listener #313

Closed
boye-s opened this issue Apr 9, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@boye-s
Copy link

boye-s commented Apr 9, 2019

It seems like calling px.*.init() breaks listeners if they already have been added.

After adding an element to the DOM and adding a listener by for example calling px.expandable.init() with Vue and then redrawing the DOM when the data in the component changes another call to px.expandable.init() does not work to re-initiate the listener.

Not sure about how to solve this, but maybe start by cleaning the list of registered listeners before registering new ones upon calling px.*.init()?

@boye-s boye-s added the bug Something isn't working label Apr 9, 2019
@Akswii
Copy link
Contributor

Akswii commented May 20, 2019

We will soon release init by ID which will lessen this issue, but we will look into fixing this at a later time.

@boye-s boye-s closed this as not planned Won't fix, can't repro, duplicate, stale Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants