Skip to content

Commit

Permalink
fix issue #558 (#564)
Browse files Browse the repository at this point in the history
  • Loading branch information
CainXCain authored Sep 3, 2023
1 parent faf53c0 commit 613edc4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/core/hooks/Suggester.js
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,14 @@ class SuggesterPanel {
const { keyCode } = evt;
// up down
if ([38, 40].includes(keyCode)) {
// issue 558
if (this.optionList.length === 0) {
setTimeout(() => {
this.stopRelate();
}, 0);
return;
}

this.cursorMove = false;

const selectedItem = this.$suggesterPanel.querySelector('.cherry-suggester-panel__item--selected');
Expand Down

0 comments on commit 613edc4

Please sign in to comment.