Error when using on field added with AJAX

Created on 25 January 2022, almost 3 years ago
Updated 28 January 2023, almost 2 years ago

Problem/Motivation

I've added select2 to a field inside a paragraph. And initially the field works correct. But when adding another paragraph with AJAX, both fields are not working anymore and display the error:

Uncaught TypeError: Cannot read properties of undefined (reading 'isConnected')

Steps to reproduce

Have a paragraph with an entity reference field using the "Select2" widget.
Have a content type with a paragraph field referencing the paragraph from step 1 and allow more than 1 paragraph using the "Paragraph Classic" widget.

Not really an idea how to debug or solve this, so any help is welcome!

πŸ› Bug report
Status

Closed: duplicate

Version

1.0

Component

Field widgets

Created by

πŸ‡§πŸ‡ͺBelgium tim-diels Belgium πŸ‡§πŸ‡ͺ

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024