Skip to content

Commit 08123b4

Browse files
committed
perf(tpl): update lookup buffer only when needed
1 parent 1db9a4b commit 08123b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tpl/defaultTheme/frontend/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,8 +394,8 @@
394394
// key changed, no more prefix match
395395
lookupKey = '';
396396
}
397+
lookupBuffer += key;
397398
}
398-
lookupBuffer += key;
399399
delayClearLookupContext();
400400
return getMatchedFocusableSibling(itemList, false, currentLookupStartA, lookupKey || lookupBuffer);
401401
}

0 commit comments

Comments
 (0)