From d45f446963cbe44df331fb8b42c11db24ef1e0bc Mon Sep 17 00:00:00 2001 From: Midka Date: Tue, 25 Oct 2022 17:10:08 +0300 Subject: [PATCH] fix: onChange event on PhoneQuestionComponent --- apps/web/components/editorjs/tools/PhoneQuestionComponent.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/web/components/editorjs/tools/PhoneQuestionComponent.tsx b/apps/web/components/editorjs/tools/PhoneQuestionComponent.tsx index 23a2ec130e..3a25e2e6d6 100644 --- a/apps/web/components/editorjs/tools/PhoneQuestionComponent.tsx +++ b/apps/web/components/editorjs/tools/PhoneQuestionComponent.tsx @@ -49,6 +49,7 @@ const PhoneQuestionComponent = (props: Props) => { defaultValue={data.label} className="w-full border-0 border-transparent p-0 ring-0 placeholder:text-gray-300 focus:ring-0" placeholder="Your Question" + onChange={onInputChange("label")} /> {data.required && (
@@ -65,6 +66,7 @@ const PhoneQuestionComponent = (props: Props) => { name="website" className="block w-full rounded-md border-gray-300 pl-10 text-gray-300 sm:text-sm" defaultValue={data.placeholder} + onChange={onInputChange("placeholder")} />
{ defaultValue={data.help} className="mt-2 block w-full max-w-sm border-0 border-transparent p-0 text-sm font-light text-gray-500 ring-0 placeholder:text-gray-300 focus:ring-0" placeholder="optional help text" + onChange={onInputChange("help")} /> );