Open bholbrook opened 4 months ago
@bholbrook Are you able to put dropdown-menu insider accordion-header in vanilla Bootstrap (HTML wo/ Blazor)? With such a demo we might be able to investigate further.
Our HxContextMenu
uses the @onclick:stopPropagation
, but it seems it is Bootstrap which passes the click event to both targets. It seems placing a dropdown inside accordion header is not supported by Bootstrap.
@hakenr If this isn't something supported by Bootstrap I'm happy closing this issue. My use-case was a little funky and so it's unlikely even if this does get fixed it'll benefit many people. Shall we close this?
@bholbrook TBH, this isn't a common scenario and without a deeper investigation, I can't definitively say whether this is supported by Bootstrap. That's why I asked for a vanilla Bootstrap demo (e.g., CodePen) where such a setup will be demonstrated. If it's possible with Bootstrap, we can take further actions to make it possible with Havit.Blazor.
(My initial tests reproduced the issue with our components, even though the @onclick:stopPropagation
is in place.)
I'm attempting to use an
HxContextMenu
inside theHeaderTemplate
of anHxAccordionItem
but when the menu item is clicked the collapse state of theHxAccordionItem
is also toggled when it shouldn't be.