I have a tooltip for my combobox items. It works and looks great!
But if I type in the text portion to filter the list, the tooltip loses all css styling and just becomes a plain white box with a thin black border. BTW, the original styling does not come back if I take the filter away.
How can I retain your very nice looking styling?
On further testing, it's NOT about whether it's filtered or not. Rather, it's about the list changing without closing and opening again.
For example, if I type "aust", I lose the styling. But if I close and reopen the list but KEEP "aust", the styling is back.
If I then erase "aust", the styling goes away again.
So, it appears the list needs to close and reopen to keep the styling. That SEEMS like a bug, no?
Regardless, have you got a way to keep the styling under all circumstances?
We have reviewed your query and understand that you are experiencing a Tooltip style issue while filtering in the ComboBox control.
On further validation, we have identified a potential solution for your reported issue. It appears that the filtered data source is populated once the filtering is done. In order to ensure that the tooltip is updated accordingly, we recommend refreshing it after a slight delay. We hope the suggested solution will resolve your reported issue. Refer to the below code snippet for further reference.
Code Snippet :
<SfTooltip @ref="TooltipObj" ID="Tooltip" Target=".e-list-item .name[title]">
<SfComboBox @ref="comboObj" TItem="GameFields" TValue="string" Placeholder="Select a game" DataSource="@Games" AllowFiltering="true" OnInput="OnFiltering">
<ComboBoxFieldSettings Text="Text" Value="ID"></ComboBoxFieldSettings>
<div class="name" title="@((context as GameFields).Text)"> @((context as GameFields).Text) </div>
<ComboBoxEvents TValue="string" TItem="GameFields" Opened="OnOpen" ></ComboBoxEvents>
public async Task OnFiltering()
Check out the shared details and get back to us if you need any further assistance.