Merge pull request #329 from IBM/combobox-disabled

fix(combo-box): disabled combobox should not open
This commit is contained in:
Eric Liu 2020-10-14 16:06:43 -07:00 committed by GitHub
commit 87908ffbd5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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"},

View file

@ -203,6 +203,7 @@
role="button"
aria-expanded="{open}"
on:click="{() => {
if (disabled) return;
open = true;
}}"
id="{id}"