statamic / v2-hub

Statamic 2 - Feature Requests and Bug Reports
https://statamic.com
95 stars 5 forks source link

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

Open sebszocinski opened 3 years ago

sebszocinski commented 3 years ago

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):