Not unique ID for the paragraph widget when updating form with "Add more" or "Remove" buttons.

Created on 1 May 2024, 9 months ago

Problem/Motivation

We have a case when need to render two or more edit node forms on the page. All of these forms have the same paragraph field in it. After rendering when pressing "Add more" or "Remove" buttons, for example on the last rendered form it provides an action to the first rendered form.

Steps to reproduce

Proposed resolution

Wrapper ID generated with the following code:

$this->fieldWrapperId = Html::getId($this->fieldIdPrefix . '-add-more-wrapper');

I suggest, instead of using the method getId() use getUniqueId() to be sure that wrapper ID always will be unique.

πŸ“Œ Task
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine _shy Ukraine, Lutsk πŸ‡ΊπŸ‡¦

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024