mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-04 15:58:49 +01:00
This commit is contained in:
parent
16e1a90bfa
commit
4d6b7b15d4
1 changed files with 1 additions and 1 deletions
|
|
@ -160,7 +160,7 @@ const filterList = (inputElement: HTMLInputElement, listElement: Element) => {
|
|||
const elementValue = element.querySelector(".b3-list-item__text").textContent.toLowerCase();
|
||||
const command = element.dataset.command;
|
||||
if (inputValue.indexOf(elementValue) > -1 || elementValue.indexOf(inputValue) > -1 ||
|
||||
inputValue.indexOf(command) > -1 || command.indexOf(inputValue) > -1) {
|
||||
inputValue.indexOf(command) > -1 || command?.indexOf(inputValue) > -1) {
|
||||
if (!hasFocus) {
|
||||
element.classList.add("b3-list-item--focus");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue