There was an error while loading. Please reload this page.
1 parent a607aaa commit 985d95fCopy full SHA for 985d95f
1 file changed
src/lib/components/contents/details/widgets/markdown/component.svelte
@@ -72,13 +72,7 @@
72
});
73
74
$effect(() => {
75
- const _inputValues = $state.snapshot(inputValues);
76
-
77
- untrack(() => {
78
- if (!equal(values, _inputValues)) {
79
- onChange(new CustomEvent('update', { detail: _inputValues }));
80
- }
81
- });
+ onChange(new CustomEvent('update', { detail: $state.snapshot(inputValues) }));
82
83
</script>
84
@@ -146,6 +140,8 @@
146
140
keyPath="{keyPath}:{fieldName}"
147
141
fieldId={generateElementId('field')}
148
142
{fieldLabel}
143
+ required={fieldConfig.required ?? true}
144
+ readonly={fieldConfig.readonly ?? false}
149
145
{fieldConfig}
150
context="markdown-editor-component"
151
bind:currentValue={inputValues[fieldName]}
0 commit comments