Skip to content
Snippets Groups Projects

#3458617: Close menu on drag in primary menu

Merged Harumi Jang requested to merge issue/experience_builder-3458617:3458617-ondrag into 0.x

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

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading