Skip to content
This repository was archived by the owner on May 9, 2023. It is now read-only.
This repository was archived by the owner on May 9, 2023. It is now read-only.

Drag feature on grid field fails to initialise when using multiple section tabs #2530

@sebszocinski

Description

@sebszocinski

Describe the bug
If you have a grid field inside a section tab that isn't the first or default tab, the grid feature doesn't seem to initialise and work.

To Reproduce

  1. Create a Fieldset with multiple section tabs
  2. Add a Grid fieldtype to one of the section tabs that isn't the main / default one.
  3. Create a new entry, add some items to the grid and save
  4. Edit entry, click on tab that has the grid field and try to drag and re-order the grid field.

Expected behavior
Grid rows should be draggable

Workaround
I found a workaround by resizing the window down to mobile and back to desktop seems to re-initialise the view and then the drag feature works again.

Environment details (please complete the following information):

  • Statamic Version 2.11.14
  • Browser: Chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions