mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 19:46:36 +00:00
fix(multi-select): prevent dropdown from opening if disabled
This commit is contained in:
parent
ae7616edf8
commit
8f0c518d1f
1 changed files with 1 additions and 0 deletions
|
@ -271,6 +271,7 @@
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
aria-expanded="{open}"
|
aria-expanded="{open}"
|
||||||
on:click="{() => {
|
on:click="{() => {
|
||||||
|
if (disabled) return;
|
||||||
if (filterable) {
|
if (filterable) {
|
||||||
open = true;
|
open = true;
|
||||||
inputRef.focus();
|
inputRef.focus();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue