Skip to content

Commit

Permalink
fix(numeric): [numeric] modify condition
Browse files Browse the repository at this point in the history
  • Loading branch information
James-9696 committed Dec 2, 2024
1 parent 6874d00 commit 292c36f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/renderless/src/numeric/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ export const handleInputChange =
({ api, state, props }: Pick<INumericRenderlessParams, 'api' | 'state' | 'props'>) =>
(event: Event): void => {
const value = event.target?.value === '-' ? 0 : event.target?.value
if (props.stepStrictly || props.step?.mode === 'strictly') {
if (props.stepStrictly || props.step.mode === 'strictly') {
const previousValue = Number((props.mouseWheel ? state.displayValue : props.modelValue) || 0)
if (
Math.abs(previousValue - value) % Number(props.step) === 0 ||
Expand Down

0 comments on commit 292c36f

Please sign in to comment.