Always enable drag selection when side panel is opened (#16664)

We disabled that before because the side panel was always on top of the
content. But now it makes sense to enable this.
This commit is contained in:
Raphaël Bosi
2025-12-18 12:21:44 +01:00
committed by GitHub
parent 47a8a15598
commit 52604e1c52
2 changed files with 0 additions and 4 deletions
@@ -9,7 +9,6 @@ import { isCommandMenuClosingState } from '@/command-menu/states/isCommandMenuCl
import { CommandMenuPages } from '@/command-menu/types/CommandMenuPages';
import { useCloseAnyOpenDropdown } from '@/ui/layout/dropdown/hooks/useCloseAnyOpenDropdown';
import { emitSidePanelOpenEvent } from '@/ui/layout/right-drawer/utils/emitSidePanelOpenEvent';
import { isDragSelectionStartEnabledState } from '@/ui/utilities/drag-select/states/internal/isDragSelectionStartEnabledState';
import { useRemoveFocusItemFromFocusStackById } from '@/ui/utilities/focus/hooks/useRemoveFocusItemFromFocusStackById';
import { t } from '@lingui/core/macro';
import { useCallback } from 'react';
@@ -33,7 +32,6 @@ export const useCommandMenu = () => {
if (isCommandMenuOpened) {
set(isCommandMenuOpenedState, false);
set(isCommandMenuClosingState, true);
set(isDragSelectionStartEnabledState, true);
closeAnyOpenDropdown();
removeFocusItemFromFocusStackById({
focusId: COMMAND_MENU_SEARCH_INPUT_FOCUS_ID,