From be53373ff7a2b40901192b7cebeb5aa399f083b5 Mon Sep 17 00:00:00 2001 From: Rob Gietema Date: Tue, 5 Nov 2024 13:51:36 +0100 Subject: [PATCH] Revert number fix. --- .../src/components/manage/Widgets/NumberWidget.jsx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/packages/volto/src/components/manage/Widgets/NumberWidget.jsx b/packages/volto/src/components/manage/Widgets/NumberWidget.jsx index 7043a4ddad..b598765ce2 100644 --- a/packages/volto/src/components/manage/Widgets/NumberWidget.jsx +++ b/packages/volto/src/components/manage/Widgets/NumberWidget.jsx @@ -48,16 +48,10 @@ const NumberWidget = (props) => { value={value ?? ''} placeholder={placeholder} onChange={({ target }) => - onChange( - id, - target.value === '' ? undefined : parseInt(target.value, 10), - ) + onChange(id, target.value === '' ? undefined : target.value) } onBlur={({ target }) => - onBlur( - id, - target.value === '' ? undefined : parseInt(target.value, 10), - ) + onBlur(id, target.value === '' ? undefined : target.value) } onClick={() => onClick()} />