From c3874b44ee3df6def342707ea56b7eceaae0f366 Mon Sep 17 00:00:00 2001
From: Li Yi Yu
Date: Thu, 5 Oct 2023 15:56:34 -0400
Subject: [PATCH] fix(surveys): open text value bug
---
src/extensions/surveys.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/extensions/surveys.ts b/src/extensions/surveys.ts
index 6a38df594..18201e5fb 100644
--- a/src/extensions/surveys.ts
+++ b/src/extensions/surveys.ts
@@ -405,7 +405,7 @@ export const createOpenTextOrLinkPopup = (
formElement.addEventListener('input', (e: any) => {
if (formElement.querySelector('.form-submit')) {
const submitButton = formElement.querySelector('.form-submit') as HTMLButtonElement
- submitButton.disabled = !e.data
+ submitButton.disabled = !e.target.value
}
})