Skip to content

#3458617: Close menu on drag in primary menu

Closes #3458617

This issue:

  • Hides the submenu onDragStart by conditionally setting a display: none and then it actually closes it onDragEnd. If we just close the menu onDragStart, the draggable element gets dismounted from the DOM because we are closing the component and it results in an error. Two new reducers have been added to uiSlice to handle this.
  • User can now also close/open the submenu by clicking on the subtrigger ("Default components", "Custom components", "Section templates").
  • Created a new sidebar/primary/sub directory and moved all submenu related components to there
  • Moved border color to use a variable in PrimaryMenubar.module.css
  • Removes old unused primary panel code

Drag and drop test should be added after [ #3455942] is in.

Edited by Harumi Jang

Merge request reports