Skip to content

Follow-up. Selecting images beyond the limit in image browser resets selection #7128

@argiepiano

Description

@argiepiano

Description of the bug

Not sure if I'd call this a bug. This is a follow-up to #7122.

When you select an image beyond the limit in the field image browser, all previously-selected images are deselected.

Steps To Reproduce

To reproduce the behavior:

  1. Attach an Image field to a content type. Set cardinality to 3
  2. Be sure the Image library contains at least 4 images (you can upload them through Content > Manage files)
  3. Create new content and use the image browser to select images
  4. Press command (Mac) or Control (Windows) to start selecting multiple images. Select 3
  5. Select a 4th image (1 beyond the limit). The first 3 selected images are deselected

Actual behavior

All previous images are deslected

Expected behavior

The browser should not allow you to select additional images, and it should keep previously selected images

Additional information

While this behavior is a bit annoying with 3 images, it becomes really annoying when you have a field with high cardinality - say 25 images. If you select a 26th image by mistake all others are deselected, and you have to start again!

Add any other information that could help, such as:

  • Backdrop CMS version: 1.34.0-preview WITH CURRENT PATCHES

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions