We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
const
1 parent 7bef03b commit 9c63b9aCopy full SHA for 9c63b9a
src/lib/controls/ConstControl.svelte
@@ -32,10 +32,10 @@
32
33
</script>
34
35
-{#if !isRequired && !force}
+{#if !force}
36
<div class="jsonschema-form-control control-const">
37
<FormField>
38
- <Checkbox bind:checked />
+ <Checkbox bind:checked disabled={isRequired} />
39
<span slot="label">{ getLabel({ title, ...$$restProps }, "") }</span>
40
</FormField>
41
{#if description}
0 commit comments