Browse Source
Merge pull request #124 from Conor-Mack/bugfix/disable-list-item
Also disabled radio and check inputs
gh-pages
Conor_Mack
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
packages/materialdesign-components/src/List/ListItem.svelte
|
|
|
@ -49,9 +49,9 @@ |
|
|
|
|
|
|
|
{#if inputElement} |
|
|
|
{#if inputElement === 'radiobutton'} |
|
|
|
<Radiobutton checked={item.selected} /> |
|
|
|
<Radiobutton checked={item.selected} disabled={item.disabled} /> |
|
|
|
{:else if inputElement === 'checkbox'} |
|
|
|
<Checkbox checked={item.selected} /> |
|
|
|
<Checkbox checked={item.selected} disabled={item.disabled} /> |
|
|
|
{/if} |
|
|
|
{:else if item.trailingIcon} |
|
|
|
<!-- TODO: Adapt label to accept class prop to handle this. Context is insufficient --> |
|
|
|
|