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

Django smart selects doesn't work with JS cloning #345

Open
dogzillaa opened this issue Nov 1, 2022 · 0 comments
Open

Django smart selects doesn't work with JS cloning #345

dogzillaa opened this issue Nov 1, 2022 · 0 comments

Comments

@dogzillaa
Copy link

I'm trying to create a page with ability to add any amount of form-copy. I use django-smart-selects to make my form's field chained. It works fine if I have only 1 form on page.

Then I'm using javascript to make a function to clone form instance by pressing button and addind new form's ids to these clones.

Actual behavior

The problem is when I press "+" button I get new cloned form on page, but chained-selection doesn't work anymore(only first one still works), and it seems that this clone copying all my choices from the firs form and remembering this state.

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