fix(ui): keep a numeric workflow input as text so the run form does not crash
This commit is contained in:
1 parent
a6eb136f66
commit
f0714af0aa
2 files changed
+3
-2
No files matched your search
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user