fix: survey editor issue (#1619)

This commit is contained in:
Dhruwang Jariwala
2023-11-15 18:33:28 +05:30
committed by GitHub
parent 32268a8ec3
commit 3eeea7d1b2

View File

@@ -40,7 +40,7 @@ export default function OpenTextQuestion({
currentElement.focus();
}
},
[question]
[question.id]
);
const isInputEmpty = (value: string) => {
return question.required && !value?.trim();