Skip to content

Commit

Permalink
Revert number fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
robgietema committed Nov 5, 2024
1 parent 5f45c2b commit be53373
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions packages/volto/src/components/manage/Widgets/NumberWidget.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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()}
/>
Expand Down

0 comments on commit be53373

Please sign in to comment.