Skip to content

Only add remove links for current working form #106

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

JoeStaines
Copy link

When using multiple formsets, adding a new form would create remove links for every other form on the page. This was because it was searching for all elements with 'a.delete-row' (or whatever you chose as the deleteCssClass) and showing all of them, which could span across multiple formsets.

This patch just uses the formCssClass attribute to determine the formset we are working on and only shows the remove links for those elements.

@JoeStaines JoeStaines closed this Mar 15, 2016
@JoeStaines JoeStaines reopened this Mar 15, 2016
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

Successfully merging this pull request may close these issues.

2 participants