Hello SF team,
I'm using Syncfusion.Blazor version 19.3.0.56
I found improper behavior from the tooltip.
When the tooltip is in OpensOn="Click" mode, it's expected that only clicking the button will open/close the tooltip.
However I found that a mousewheel scroll outside of the tooltip will close it, and I believe this is not appropriate behavior.
To see the impact of this problem, I shared code and a gif which shows how the tooltip closes when trying to scroll through a dropdown selection.
I realize that a workaround exists for this by using the OpensOn="Custom" configuration.
However in that case I found that the Tool Tip does not seem to a built-in boolean to determine if it's already opened or closed. It has Event Callbacks for keeping track of open/close events, however this is more work to manage that state externally. Is it possible to add a current "open or closed" boolean to the SfTooltip class?
|
@using Syncfusion.Blazor.Popups
@using Syncfusion.Blazor.Buttons
<div style="margin: 20px; height:100%">
<h2> is Tooltip open: @TooltipState.ToString()</h2>
<SfTooltip @ref="@TestToolTip" OpensOn="Click" Target="#TestBtn" CssClass="filter-button-style" OnOpen="TooltipOpen" OnClose="TooltipClose" Content="Hello">
<SfButton id="TestBtn" IconCss="e-icons e-chevron-down" IconPosition="IconPosition.Right">Button</SfButton>
</SfTooltip>
</div>
@code {
public bool TooltipState;
public SfTooltip TestToolTip { get; set; }
public async void OpenToolTip(MouseEventArgs args1)
{
await TestToolTip.OpenAsync();
}
public async void CloseToolTip(MouseEventArgs args2)
{
await TestToolTip.CloseAsync();
}
public void TooltipOpen()
{
TooltipState = true;
}
public void TooltipClose()
{
TooltipState = false;
}
} |
Thank you Shameer for the explanation, it makes sense!
Hi Sorin,
We are glad that the provided details were helpful for you. Please get back to us if you need any further assistance.
Regards,
Indhumathy L