"Add another item" button is shown for a field with original ulimited cardinality but limited cardinality defined using this module

Created on 1 June 2023, about 1 year ago
Updated 12 July 2023, 12 months ago

Problem/Motivation

Drupal default expected behavior when a field has limited cardinality: https://www.drupal.org/files/issues/2023-06-01/expected.mp4

Current behavior when a field has limited cardinality set using this module (for a field with 'Drupal' unlimited cardinality): https://www.drupal.org/files/issues/2023-06-01/current.mp4

This is a UX issue if say a component (possibly set using paragraphs module, or event simply as a reference field) is named "2 card layout" that is using a field of unlimited cardinality but cardinality set as 2 for this component. In this case when user clicks on "Add '2 card layout'" button, they'd expect 2 reference fields to already be present but instead will see 1 reference field and an "Add another item" button.

Steps to reproduce

Create a field with unlimited cardinality in field storage settings. Set limited cardinality using this module.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

RTBC

Version

3.0

Component

Code

Created by

🇮🇳India dipakmdhrm

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

Comments & Activities

Production build 0.69.0 2024