mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
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
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:
parent
25c1c3218c
commit
c57cac9e4d
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue