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

TabularInline's management-form is incorrectly updated after deleting a dynamic row #1051

Open
jgeskens opened this issue Feb 10, 2025 · 0 comments

Comments

@jgeskens
Copy link

jgeskens commented Feb 10, 2025

What version of Unfold are you using?

main

What version of Django are you using?

5.0.6

What browser are you using?

Chrome latest

Did you checked changelog/commit history, if the bug is not already fixed?

Yes

Did you searched other issues, if the bug is not already fixed?

Yes

Did you checked documentation?

Yes

Are you able to replicate the bug in the demo site?

https://demo.unfoldadmin.com/en/admin/formula/driver/56/change/#standing

Open the element inspector and watch "standing_set-TOTAL_FORMS". Add a standing and then delete it again. The JS does not update the TOTAL_FORMS correctly

Repository with reproduced bug

main

Describe your issue

See how to replicate the issue above. The TOTAL_FORMS is updated incorrectly after deleting a dynamically added form. It seems to be only affecting the TabularInline, not the StackedInline.

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