fix: openText issue (#1579)

This commit is contained in:
Dhruwang Jariwala
2023-11-06 13:55:12 +05:30
committed by GitHub
parent 3a9ca829cc
commit 66cfbebe74

View File

@@ -66,7 +66,7 @@ export default function OpenTextQuestion({
id={question.id}
placeholder={question.placeholder}
required={question.required}
value={value as string}
value={value ? (value as string) : ""}
type={question.inputType}
onInput={(e) => handleInputChange(e.currentTarget.value)}
autoFocus={autoFocus}