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
using EuiBadge, if I set iconOnClick, the entire badge becomes a clickable button (where only the icon binds to the iconOnClick). This is problematic for using with things like EuiDraggable, since there is pretty much no where to click and drag for the badge.
<EuiBadge
iconType="cross"
iconOnClickAriaLabel="something"
iconOnClick={() => alert('hello')}
>
Example Badge
</EuiBadge>
^ notice the underlined "Example Badge", as it is treated as a clickable link - that does not do anything.
The text was updated successfully, but these errors were encountered:
When diagnosing this, I noticed our docs example renders the inner text as a button when only the icon should be a button. Likely we just need to shift this to a span if no onClick is present. I know this is how it used to work, so likely we had a small regression recently.
using
EuiBadge
, if I seticonOnClick
, the entire badge becomes a clickable button (where only the icon binds to the iconOnClick). This is problematic for using with things likeEuiDraggable
, since there is pretty much no where to click and drag for the badge.^ notice the underlined "Example Badge", as it is treated as a clickable link - that does not do anything.
The text was updated successfully, but these errors were encountered: