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

[Dropdown] Doesn't work a dynamically cloned element. #6885

Open
kohki-shikata opened this issue Oct 17, 2019 · 2 comments
Open

[Dropdown] Doesn't work a dynamically cloned element. #6885

kohki-shikata opened this issue Oct 17, 2019 · 2 comments

Comments

@kohki-shikata
Copy link

Hi, there.
I'm creating the invoice web app. I need a repeatable and sortable form for this app.
But, Dropdown doesn't work dynamically repeated.

I reproduced it.
https://jsfiddle.net/8L07pc9t/16/

Is this Bug or anything to resolve it?

@YamiOdymel
Copy link

YamiOdymel commented Oct 18, 2019

It's a normal JavaScript behavior for DOM element cloning. It's not the original element once you cloned it.

You will have to rebind it with another $('.selection.dropdown').dropdown() again.

@Simplicity49
Copy link

Simplicity49 commented Mar 1, 2023

Hey man! You saved me 3hrs+ stress. I'd upvote if stack @YamiOdymel Thanks

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

3 participants