fix(editor): Keep always focus on the first item on the node's search panel (#11193)
Some checks are pending
Test Master / install-and-build (push) Waiting to run
Test Master / Unit tests (18.x) (push) Blocked by required conditions
Test Master / Unit tests (20.x) (push) Blocked by required conditions
Test Master / Unit tests (22.4) (push) Blocked by required conditions
Test Master / Lint (push) Blocked by required conditions
Test Master / Notify Slack on failure (push) Blocked by required conditions

This commit is contained in:
Ricardo Espinoza 2024-10-17 21:51:35 +02:00 committed by GitHub
parent 25c1c3218c
commit c57cac9e4d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -40,10 +40,6 @@ const searchPlaceholder = computed(() =>
const nodeCreatorView = computed(() => useNodeCreatorStore().selectedView);
function getDefaultActiveIndex(search: string = ''): number {
if (activeViewStack.value.activeIndex) {
return activeViewStack.value.activeIndex;
}
if (activeViewStack.value.mode === 'actions') {
// For actions, set the active focus to the first action, not category
return 1;