Skip to content

Commit

Permalink
If dialog was shown due to match being found, hide popup entirely whe…
Browse files Browse the repository at this point in the history
…n virtual router navigates to another page (unless form is opened).
  • Loading branch information
coddingtonbear committed Feb 11, 2024
1 parent feffc95 commit c2b0912
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/popup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,11 @@ if (!document.getElementById(ROOT_CONTAINER_ID)) {

setMentions(allMentions.mentions);
setDirectReferences(allMentions.direct);
if (allMentions.count === 0) {
if (popupDisplayed && !popupFormDisplayed) {
setPopupDisplayed(false);
}
}
}

handle();
Expand Down

0 comments on commit c2b0912

Please sign in to comment.