Skip to content

Commit 9c63b9a

Browse files
author
Sean Wilson
committed
show & disable required const checkboxes
1 parent 7bef03b commit 9c63b9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/controls/ConstControl.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@
3232
3333
</script>
3434

35-
{#if !isRequired && !force}
35+
{#if !force}
3636
<div class="jsonschema-form-control control-const">
3737
<FormField>
38-
<Checkbox bind:checked />
38+
<Checkbox bind:checked disabled={isRequired} />
3939
<span slot="label">{ getLabel({ title, ...$$restProps }, "") }</span>
4040
</FormField>
4141
{#if description}

0 commit comments

Comments
 (0)