File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 21
21
{#if choices .length > 0 }
22
22
{#each choices as choice , i }
23
23
<div class ={cn (divStyle (), divClass )}>
24
- <input type ="checkbox" value ={choice .value } checked ={choice .checked ?? false } {disabled } bind:group {...restProps } class ={cn (base (), className )} />
25
24
<Label show ={true } {...labelProps }>
25
+ <input type ="checkbox" value ={choice .value } checked ={choice .checked ?? false } {disabled } bind:group {...restProps } class ={cn (base (), className )} />
26
26
{renderLabel (choice )}
27
27
</Label >
28
28
</div >
29
29
{/each }
30
30
{:else }
31
31
<div class ={cn (divStyle (), divClass )}>
32
- <input type ="checkbox" {value } bind:checked {indeterminate } {disabled } {...restProps } class ={cn (base (), className )} />
33
- {#if children }
34
- {@render children ({ value , checked , disabled })}
35
- {/if }
32
+ <Label show ={true } {...labelProps }>
33
+ <input type ="checkbox" {value } bind:checked {indeterminate } {disabled } {...restProps } class ={cn (base (), className )} />
34
+ {#if children }
35
+ {@render children ({ value , checked , disabled })}
36
+ {/if }
37
+ </Label >
36
38
</div >
37
39
{/if }
You can’t perform that action at this time.
0 commit comments