Open astorije-vmware opened 1 year ago
This is an interesting one. I don't see any special click handler logic in our component, and icons aren't clickable in normal slotted content or in the cds-button-action component. So it's something unique about the icons in the loadingState, but I can't figure out what
I can't understand still why but seems like cds-icon
is a clickable element. That resolves in having a clickable element inside clickable element and we have to either stop propagation of the events or use pointer-events: none
on the cds-icon
inside disabled element that seems to work.
Any contribution is welcome here.
Describe the bug
When
loadingState
is used on aCdsButton
, the gray part of the button cannot be clicked as expected, but the icons can be clicked, despite thenot-allowed
cursor.How to reproduce
Steps to reproduce the behavior:
Expected behavior
None of the button content should be clickable.
Versions
Clarity project:
Clarity version:
Framework:
Framework version:
React 18