Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grid rows in stacked view cannot be deleted unless reorderable #2306

Closed
gilleard opened this issue Aug 27, 2020 · 0 comments
Closed

Grid rows in stacked view cannot be deleted unless reorderable #2306

gilleard opened this issue Aug 27, 2020 · 0 comments

Comments

@gilleard
Copy link

Bug Description

Grid rows in stacked view cannot be deleted unless reorderable.

How to Reproduce

  1. Create a grid field
  2. Switch to stacked layout
  3. Disable reorderable
  4. Add a row to the field on the publish form

Extra Detail

The delete button is wrapped in a isReorderable check from this commit resulting in a hidden class hiding the delete row UI.

Fwiw I'm trying to use a grid with max items set to 1 to group some optional fields, but feel like the root issue must be a pretty common use case.

Environment

  • Statamic 3.0.1 Pro
  • Laravel 7.7.1
  • PHP 7.4.5
  • No addons installed
  • Existing Laravel app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant