fix(ui): keep a numeric workflow input as text so the run form does not crash

This commit is contained in:
sam committed 2026-10-18 00:08:41 +11:00
1 parent a6eb136f66
commit f0714af0aa
2 files changed
+3 -2

No files matched your search

+2 -1
View File
@@ -153,10 +153,11 @@ async function submit() {
</label>
<Input
:id="`${uid}-input-${field.name}`"
v-model="inputText[field.name]"
:model-value="inputText[field.name]"
:type="field.type === 'number' ? 'number' : 'text'"
class="font-mono"
:required="field.required"
@update:model-value="(value) => (inputText[field.name] = String(value ?? ''))"
/>
<p class="text-xs text-fg-subtle">{{ field.type }}</p>
</div>