Hi,
I have some additional Controls in a PanelBar-Header-Template. Anytime when I click on a Control the Event bubbles to the PanelbarHeader and opens the panel.
How can I prevent this bubbeling?
As you see, I tried to get rid of that with "stopPropagation". But you can imagine it doesn't work.
<TelerikPanelBar Data="@item.ColorsWithArticles"
@bind-ExpandedItems="@ExpandedItems"
OnExpand="@OnPanelBarExpand">
<PanelBarBindings>
<PanelBarBinding Level="0" ItemsField="Articles">
<HeaderTemplate>
@{
var article = ((ColorAndArticlesItemVm)context);
<div class="d-flex flex-row flex-wrap">
<div class="p-1 border">
<img src="@article.Color.ColorImageUrl" alt="" style="width:28px; height:28px">
</div>
<div onkeydown="stopPropagation(event)" onmousedown="stopPropagation(event)">
<TelerikTextBox @bind-Value="@StringValue" />
</div>
</div>
<script suppress-error="BL9992">
function stopPropagation(e) {
e.stopPropagation();
}
</script>
Thank you