Skip to content

Inline forms not working after django 4.1 #205

Open
@guilleijo

Description

@guilleijo
  • Django better admin ArrayField version: 1.4.2
  • Django version: 4.1.4
  • Python version: 3.11
  • Operating System: macOS 12.6 (Monterey)

Description

When using a better array field in an inline admin the Add another button does not work on new items. The Uncaught TypeError: Cannot read properties of undefined (reading '0') error is seen in the console when adding a new inline item.

This is caused by changes in django 4.1. From the docs:

Changed in Django 4.1:
In older versions, the event was a jQuery event with $row and formsetName parameters.
It is now a JavaScript CustomEvent with parameters set in event.detail.

Possibly related to some of the issues people are having described in issue #25

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions