Skip to content

If JS is loaded twice, the collapsing feature stops working. #110

@jucajuca

Description

@jucajuca

See the following screen recording. When the first json form is loaded it works normally. However, when a second form is loaded, the collapsing feature stops working. In the second part of the video I try to collapse the form but it does not work. (unfortunately mouse clicks are not displayed)

Screencast.from.2026-03-06.21-06-20.mp4

This is a workaround , but it would be nicer if the code can support multiple forms.

          <script defer src="{% static 'django_jsonform/vendor/react.production.min.js' %}"></script>
          <script defer src="{% static 'django_jsonform/vendor/react-dom.production.min.js' %}"></script>
          <script defer src="{% static 'django_jsonform/vendor/react-modal.min.js' %}"></script>
          <script defer src="{% static 'django_jsonform/react-json-form.js' %}"></script>
          <script defer src="{% static 'django_jsonform/index.js' %}"></script>

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