Fix epic and milestone select in swimlane sidebar
For epic select in the swimlane sidebar: 1. The epic dropdown didn't automatically expand because 'board_sidebar_epic_select.vue` was using a removed method (handleEditClick) of sidebar/epics_select/base.vue. The method's been removed in https://gitlab.com/gitlab-org/gitlab/-/merge_requests/52528. This MR replaces the removed method with the newly added substitute method 'toggleFormDropdown' in 'board_sidebar_epic_select.vue' 2. The epic dropdown threw an error when user selects an already-assigned epic. This MR fixes the problem by adding a guard. For milestone select in the swimlane sidebar: BoardSidebarMilestone component used to listen BV_DROPDOWN_HIDE event to collapse BoardEditableItem. This MR instead attaches listens for @hide event on EpicSelect to collapse BoardEditableItem. (EpicSelect wraps GlDropdown and GlDropdown normally exposes @hide and @hidden by default).
Showing
Please register or sign in to comment