fix(combo-box): disabled combobox should not open

This commit is contained in:
Eric Liu 2020-10-14 15:51:27 -07:00
commit f8ae391ef6
2 changed files with 2 additions and 2 deletions

View file

@ -57,8 +57,7 @@ items={[
### Disabled ### Disabled
<ComboBox titleText="Contact" placeholder="Select contact method" <ComboBox disabled titleText="Contact" placeholder="Select contact method"
disabled
items={[ items={[
{id: "0", text: "Slack"}, {id: "0", text: "Slack"},
{id: "1", text: "Email"}, {id: "1", text: "Email"},

View file

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