You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered some strange behavior when placing <KDropdown> inside <KLabel>:
Clicking the trigger immediately fires the first menu item's onClick
When clicking the <KDropdown> trigger, it seems to immediately trigger the onClick of the first menu item. As a result, the menu closes right away.
This issue does not occur when the trigger is a native element.
Clicking anywhere inside a flex <KLabel> triggers the dropdown
If <KLabel> has display: flex, clicking anywhere inside the <KLabel> (even outside the actual dropdown trigger) will trigger the <KDropdown>'s onClick.
This makes the entire label area behave as if it were the dropdown trigger, which is unexpected.
KM-2290
I encountered some strange behavior when placing
<KDropdown>inside<KLabel>:onClickWhen clicking the
<KDropdown>trigger, it seems to immediately trigger theonClickof the first menu item. As a result, the menu closes right away.This issue does not occur when the trigger is a native element.
<KLabel>triggers the dropdownIf
<KLabel>hasdisplay: flex, clicking anywhere inside the<KLabel>(even outside the actual dropdown trigger) will trigger the<KDropdown>'sonClick.This makes the entire label area behave as if it were the dropdown trigger, which is unexpected.
Reproduction: https://stackblitz.com/edit/vitejs-vite-8eimaiwe
20260220-0414-03.4141394.mp4