From 6a07150b629600d71aaa2ad1d507ae4932a69cc2 Mon Sep 17 00:00:00 2001 From: Rob Gietema Date: Mon, 25 Nov 2024 15:17:41 +0100 Subject: [PATCH] Email and number widget fixes. --- .../src/schemaFormBlock/Wrappers/EmailWrapper.jsx | 1 + .../src/schemaFormBlock/Wrappers/NumberWrapper.jsx | 1 + 2 files changed, 2 insertions(+) diff --git a/frontend/packages/volto-form-block/src/schemaFormBlock/Wrappers/EmailWrapper.jsx b/frontend/packages/volto-form-block/src/schemaFormBlock/Wrappers/EmailWrapper.jsx index 38e8b77..f021800 100644 --- a/frontend/packages/volto-form-block/src/schemaFormBlock/Wrappers/EmailWrapper.jsx +++ b/frontend/packages/volto-form-block/src/schemaFormBlock/Wrappers/EmailWrapper.jsx @@ -29,6 +29,7 @@ const EmailWrapper = (props) => { label={title} description={description} disabled={isDisabled} + type="email" onChange={(value) => onChange(id, value === '' ? undefined : value)} ref={ref} onClick={() => onClick()} diff --git a/frontend/packages/volto-form-block/src/schemaFormBlock/Wrappers/NumberWrapper.jsx b/frontend/packages/volto-form-block/src/schemaFormBlock/Wrappers/NumberWrapper.jsx index f994adb..069b98b 100644 --- a/frontend/packages/volto-form-block/src/schemaFormBlock/Wrappers/NumberWrapper.jsx +++ b/frontend/packages/volto-form-block/src/schemaFormBlock/Wrappers/NumberWrapper.jsx @@ -27,6 +27,7 @@ const NumberWrapper = (props) => { value={value || ''} label={title} description={description} + type="number" disabled={isDisabled} placeholder={placeholder} onChange={(value) => onChange(id, value === '' ? undefined : value)}