mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
Merge pull request #329 from IBM/combobox-disabled
fix(combo-box): disabled combobox should not open
This commit is contained in:
commit
87908ffbd5
2 changed files with 2 additions and 2 deletions
|
@ -57,8 +57,7 @@ items={[
|
|||
|
||||
### Disabled
|
||||
|
||||
<ComboBox titleText="Contact" placeholder="Select contact method"
|
||||
disabled
|
||||
<ComboBox disabled titleText="Contact" placeholder="Select contact method"
|
||||
items={[
|
||||
{id: "0", text: "Slack"},
|
||||
{id: "1", text: "Email"},
|
||||
|
|
|
@ -203,6 +203,7 @@
|
|||
role="button"
|
||||
aria-expanded="{open}"
|
||||
on:click="{() => {
|
||||
if (disabled) return;
|
||||
open = true;
|
||||
}}"
|
||||
id="{id}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue