Items are removed incorrectly with Ajax

Created on 26 August 2021, over 3 years ago
Updated 27 November 2023, about 1 year ago

Problem/Motivation

I'm using Panelizer module and custom ctools blocks were I have "mutli-value" field.
Panelizer adds blocks using Ajax.
So when I try to remove first (or next item but not the last) by making all fields empty the last item values are duplicated.

Steps to reproduce

Before item removal:

After item removal:

Proposed resolution

Cause of the issue is with "multi-value" element and #input in form_state.

I think the same issue is with 1.0.0-beta2.

🐛 Bug report
Status

Needs work

Version

1.0

Component

Code

Created by

🇺🇦Ukraine deimos

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

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