Unable to remove option from row style

Created on 20 February 2025, about 2 months ago

Problem/Motivation

When using UI patterns in a view and adding view fields to the slots of a pattern. If you want to remove a row you can't

Steps to reproduce

Create a view using UI Patterns
Add an option to one of the slots (view field for example)
Save everything
Edit the view and try and remove that option

Proposed resolution

Be able to remove options from the slots

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

2.0

Component

UI Patterns Views

Created by

πŸ‡ΊπŸ‡ΈUnited States smustgrave

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

Comments & Activities

  • Issue created by @smustgrave
  • πŸ‡ΊπŸ‡¦Ukraine SmovS Lutsk
  • I tested this issue using Drupal 10.4 with UI Patterns 2.0 installed via:

    composer require 'drupal/ui_patterns:^2.0'

    Steps I followed:

    Installed UI Patterns and enabled necessary submodules.
    Created a View and added UI Patterns as a row format.
    Successfully added and removed fields from the View.
    Checked Layout Builder integration, and I was able to add and remove fields from UI Patterns slots.
    Cleared cache using drush cache:rebuild, and everything worked fine.
    Conclusion:
    I couldn't reproduce the issue. UI Patterns fields are appearing correctly in Views and Layout Builder.

    Can you check if you're using the latest version and clear caches (drush cr) to see if the issue persists?

  • πŸ‡ΊπŸ‡¦Ukraine SmovS Lutsk

    Hi @smustgrave

    I couldn't reproduce this issue in my local environment (PHP 8.3, Drupal Core 11.1.5, UI Patterns 2.0.3)

    My steps to reproduce:
    - created a view;
    - added a field, and configured it as a Component per Item;
    - saved the view and checked that changes had been applied (everything was ok).
    - removed the field in the view edit form without any issues.

    Can you please double-check this issue on your side? If it happens again please let us know with more details. Thank you

Production build 0.71.5 2024