mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-20 12:23:02 +00:00
fix(Dropdown): the ListBox element was selectable in disabled state if extended Dropdown
This commit is contained in:
parent
d8a04f98ca
commit
779be084c9
1 changed files with 1 additions and 0 deletions
|
@ -176,6 +176,7 @@
|
||||||
{disabled && 'bx--dropdown--disabled'}
|
{disabled && 'bx--dropdown--disabled'}
|
||||||
{light && 'bx--dropdown--light'}"
|
{light && 'bx--dropdown--light'}"
|
||||||
on:click="{({ target }) => {
|
on:click="{({ target }) => {
|
||||||
|
if (disabled) return;
|
||||||
open = ref.contains(target) ? !open : false;
|
open = ref.contains(target) ? !open : false;
|
||||||
}}"
|
}}"
|
||||||
disabled="{disabled}"
|
disabled="{disabled}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue