Skip to content

Commit

Permalink
fix #989 Tooltips freeze and never go away
Browse files Browse the repository at this point in the history
  • Loading branch information
vegegoku committed Dec 19, 2024
1 parent 07e015e commit f28c0fe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,13 @@ public void closePopovers(String sourceId) {
public void closeTooltips(String sourceId) {
body()
.querySelectorAll(".dui-tooltip")
.forEach(e -> e.dispatchEvent(closeTooltipEvent(sourceId)));
.forEach(
e -> {
if (!e.getDominoId().equalsIgnoreCase(sourceId)) {
e.remove();
}
e.dispatchEvent(closeTooltipEvent(sourceId));
});
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ public BasePopover(Element target) {
(e, mutationRecord) -> {
body().removeEventListener(EventType.keydown.getName(), closeListener);
DomGlobal.document.body.removeEventListener("blur", lostFocusListener, true);
close();
});
addCollapseListener(this::doClose);
closeAllListener =
Expand Down

0 comments on commit f28c0fe

Please sign in to comment.