diff --git a/.changeset/dry-jars-whisper.md b/.changeset/dry-jars-whisper.md new file mode 100644 index 000000000..baaaa6542 --- /dev/null +++ b/.changeset/dry-jars-whisper.md @@ -0,0 +1,5 @@ +--- +'@churros/app': patch +--- + +fix(app): date inputs were sometimes not editable diff --git a/packages/app/src/lib/components/BaseInputText.svelte b/packages/app/src/lib/components/BaseInputText.svelte index dd5a3eeeb..6de5214f2 100644 --- a/packages/app/src/lib/components/BaseInputText.svelte +++ b/packages/app/src/lib/components/BaseInputText.svelte @@ -23,6 +23,7 @@ export let closeKeyboardOnEnter = false; export let element: HTMLInputElement | undefined = undefined; export let focused = false; + export let readonly = false; export let help = ''; // TODO use (HTMLInputElement).valueAsDate instead @@ -140,6 +141,7 @@ {name} value={stringifyValue(value, type)} required={required || undefined} + readonly={readonly || undefined} {autocomplete} {placeholder} {...$$restProps}