Skip to content

Commit

Permalink
Reset option when popover no longer provides suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathonherbert committed Sep 26, 2024
1 parent a3bffc2 commit b2c7451
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions prosemirror-client/src/cqlInput/TypeaheadPopover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export class TypeaheadPopover extends Popover {
this.view.state.selection.from !== this.view.state.selection.to
) {
this.currentSuggestion = undefined;
this.currentOptionIndex = 0;
this.popoverEl.hidePopover?.();
this.popoverEl.innerHTML = "";
return;
Expand Down

0 comments on commit b2c7451

Please sign in to comment.