1
0
Fork 0
mirror of synced 2024-10-02 10:08:09 +13:00

Merge pull request #124 from Conor-Mack/bugfix/disable-list-item

Also disabled radio and check inputs
This commit is contained in:
Conor_Mack 2020-02-24 11:52:16 +00:00 committed by GitHub
commit bd225d1eac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 -->