Skip to content

Commit 58576c6

Browse files
committed
Hide tooltip if already open when textchanged
Follow up to #2232
1 parent 974e221 commit 58576c6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CefSharp.Wpf/ChromiumWebBrowser.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1901,8 +1901,10 @@ private void UpdateTooltip(string text)
19011901
else
19021902
{
19031903
// hide old tooltip before showing the new one to update the position
1904-
if (toolTip.Content as string != text)
1904+
if (toolTip.IsOpen)
1905+
{
19051906
toolTip.IsOpen = false;
1907+
}
19061908

19071909
toolTip.Content = text;
19081910
toolTip.Placement = PlacementMode.Mouse;

0 commit comments

Comments
 (0)