fix: webapps not show number type input field (#4292)

This commit is contained in:
Joel
2024-05-11 14:42:04 +08:00
committed by GitHub
parent 198d6c00d6
commit 34d3998566
2 changed files with 20 additions and 2 deletions

View File

@@ -37,6 +37,17 @@ const Form = () => {
/>
)
}
if (form.type === 'number') {
return (
<input
className="grow h-9 rounded-lg bg-gray-100 px-2.5 outline-none appearance-none"
type="number"
value={newConversationInputs[variable] || ''}
onChange={e => handleFormChange(variable, e.target.value)}
placeholder={`${label}${!required ? `(${t('appDebug.variableTable.optional')})` : ''}`}
/>
)
}
return (
<PortalSelect