File tree Expand file tree Collapse file tree 3 files changed +10
-8
lines changed
fields/inputFields/fields/Editor Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 4040 <textarea bind:value ={value } onfocusout ={() => focusOut ()} oninput ={() => props .onValueChange (value )}
4141 ></textarea >
4242 {:else }
43- <MarkdownRenderComponent bind: value ={value } plugin ={props .plugin } filePath ={props .filePath }
43+ <MarkdownRenderComponent value ={value } plugin ={props .plugin } filePath ={props .filePath }
4444 ></MarkdownRenderComponent >
4545 {/if }
4646</div >
Original file line number Diff line number Diff line change 55 let element: HTMLElement ;
66
77 const {
8- value = $bindable ( ' ' ) ,
8+ value,
99 plugin,
1010 filePath,
1111 }: {
Original file line number Diff line number Diff line change 11<script lang =" ts" >
22 let {
3- checked = $bindable (false ),
3+ checked = $bindable (),
44 }: {
55 checked? : boolean ;
66 } = $props ();
7+
8+ let boolChecked = $derived (checked ?? false );
79 </script >
810
911<div
1012 class =" checkbox-container"
11- class:is-enabled ={checked }
13+ class:is-enabled ={boolChecked }
1214 role =" switch"
1315 tabindex =" 0"
14- aria-checked ={checked }
15- onclick ={() => (checked = ! checked )}
16+ aria-checked ={boolChecked }
17+ onclick ={() => (checked = ! boolChecked )}
1618 onkeydown ={e => {
1719 if (e .key === ' ' ) {
18- checked = ! checked ;
20+ checked = ! boolChecked ;
1921 }
2022 }}
2123>
22- <input type ="checkbox" tabindex ="-1" checked ={checked } />
24+ <input type ="checkbox" tabindex ="-1" checked ={boolChecked } />
2325</div >
You can’t perform that action at this time.
0 commit comments