Skip to content

Commit

Permalink
🎨 #14111
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Feb 17, 2025
1 parent 10a9ef1 commit edec733
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/src/util/upDownHint.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
const isNormalItem = (currentHintElement: HTMLElement, className: string) => {
return currentHintElement.classList.contains("fn__none") || !currentHintElement.classList.contains(className) ||
// https://github.com/siyuan-note/siyuan/issues/12518
currentHintElement.getBoundingClientRect().height === 0;
return !currentHintElement.classList.contains(className) || currentHintElement.getBoundingClientRect().height === 0
};

export const upDownHint = (listElement: Element, event: KeyboardEvent, classActiveName = "b3-list-item--focus", defaultElement?: Element) => {
Expand Down

0 comments on commit edec733

Please sign in to comment.