Prevent MenuItem firing onlick handlers when disabled
This commit is contained in:
parent
0a12089a54
commit
dca9d5665a
|
@ -19,7 +19,7 @@
|
|||
|
||||
<li
|
||||
data-cy={dataCy}
|
||||
on:click|preventDefault={onClick}
|
||||
on:click|preventDefault={disabled ? null : onClick}
|
||||
class="spectrum-Menu-item"
|
||||
class:is-disabled={disabled}
|
||||
role="menuitem"
|
||||
|
|
Loading…
Reference in New Issue