diff --git a/packages/embeds/js/package.json b/packages/embeds/js/package.json index 4a382c30c..b0384ae1d 100644 --- a/packages/embeds/js/package.json +++ b/packages/embeds/js/package.json @@ -1,6 +1,6 @@ { "name": "@typebot.io/js", - "version": "0.2.59", + "version": "0.2.60", "description": "Javascript library to display typebots on your website", "type": "module", "main": "dist/index.js", diff --git a/packages/embeds/js/src/features/blocks/inputs/email/components/EmailInput.tsx b/packages/embeds/js/src/features/blocks/inputs/email/components/EmailInput.tsx index f44c25f29..fe309ba7a 100644 --- a/packages/embeds/js/src/features/blocks/inputs/email/components/EmailInput.tsx +++ b/packages/embeds/js/src/features/blocks/inputs/email/components/EmailInput.tsx @@ -20,7 +20,7 @@ export const EmailInput = (props: Props) => { const handleInput = (inputValue: string) => setInputValue(inputValue) const checkIfInputIsValid = () => - inputValue() !== '' && inputRef?.reportValidity() + inputRef?.value !== '' && inputRef?.reportValidity() const submit = () => { if (checkIfInputIsValid()) props.onSubmit({ value: inputValue() }) diff --git a/packages/embeds/js/src/features/blocks/inputs/number/components/NumberInput.tsx b/packages/embeds/js/src/features/blocks/inputs/number/components/NumberInput.tsx index 389c924d8..7ce4c0e24 100644 --- a/packages/embeds/js/src/features/blocks/inputs/number/components/NumberInput.tsx +++ b/packages/embeds/js/src/features/blocks/inputs/number/components/NumberInput.tsx @@ -23,7 +23,7 @@ export const NumberInput = (props: NumberInputProps) => { let inputRef: HTMLInputElement | undefined const checkIfInputIsValid = () => - inputValue() !== '' && inputRef?.reportValidity() + inputRef?.value !== '' && inputRef?.reportValidity() const submit = () => { if (checkIfInputIsValid()) diff --git a/packages/embeds/js/src/features/blocks/inputs/phone/components/PhoneInput.tsx b/packages/embeds/js/src/features/blocks/inputs/phone/components/PhoneInput.tsx index c109f63dd..14907334b 100644 --- a/packages/embeds/js/src/features/blocks/inputs/phone/components/PhoneInput.tsx +++ b/packages/embeds/js/src/features/blocks/inputs/phone/components/PhoneInput.tsx @@ -57,7 +57,7 @@ export const PhoneInput = (props: PhoneInputProps) => { } const checkIfInputIsValid = () => - inputValue() !== '' && inputRef?.reportValidity() + inputRef?.value !== '' && inputRef?.reportValidity() const submit = () => { const selectedCountryDialCode = phoneCountries.find( diff --git a/packages/embeds/js/src/features/blocks/inputs/textInput/components/TextInput.tsx b/packages/embeds/js/src/features/blocks/inputs/textInput/components/TextInput.tsx index aab32c4a4..8aceb094b 100644 --- a/packages/embeds/js/src/features/blocks/inputs/textInput/components/TextInput.tsx +++ b/packages/embeds/js/src/features/blocks/inputs/textInput/components/TextInput.tsx @@ -20,7 +20,7 @@ export const TextInput = (props: Props) => { const handleInput = (inputValue: string) => setInputValue(inputValue) const checkIfInputIsValid = () => - inputValue() !== '' && inputRef?.reportValidity() + inputRef?.value !== '' && inputRef?.reportValidity() const submit = () => { if (checkIfInputIsValid()) props.onSubmit({ value: inputValue() }) diff --git a/packages/embeds/js/src/features/blocks/inputs/url/components/UrlInput.tsx b/packages/embeds/js/src/features/blocks/inputs/url/components/UrlInput.tsx index 0aecd5a64..97dc37dfb 100644 --- a/packages/embeds/js/src/features/blocks/inputs/url/components/UrlInput.tsx +++ b/packages/embeds/js/src/features/blocks/inputs/url/components/UrlInput.tsx @@ -26,7 +26,7 @@ export const UrlInput = (props: Props) => { } const checkIfInputIsValid = () => - inputValue() !== '' && inputRef?.reportValidity() + inputRef?.value !== '' && inputRef?.reportValidity() const submit = () => { if (checkIfInputIsValid()) props.onSubmit({ value: inputValue() }) diff --git a/packages/embeds/nextjs/package.json b/packages/embeds/nextjs/package.json index 316b4b339..b9f8a503a 100644 --- a/packages/embeds/nextjs/package.json +++ b/packages/embeds/nextjs/package.json @@ -1,6 +1,6 @@ { "name": "@typebot.io/nextjs", - "version": "0.2.59", + "version": "0.2.60", "description": "Convenient library to display typebots on your Next.js website", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/packages/embeds/react/package.json b/packages/embeds/react/package.json index 91b5fdca8..3d3a4474b 100644 --- a/packages/embeds/react/package.json +++ b/packages/embeds/react/package.json @@ -1,6 +1,6 @@ { "name": "@typebot.io/react", - "version": "0.2.59", + "version": "0.2.60", "description": "Convenient library to display typebots on your React app", "main": "dist/index.js", "types": "dist/index.d.ts",