Skip to content

Commit

Permalink
NumberControl: Fix invalid HTML attributes for infinite bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
Infinite-Null committed Feb 4, 2025
1 parent af2915f commit 4602271
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/components/src/number-control/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,8 @@ function UnforwardedNumberControl(
hideHTMLArrows={ spinControls !== 'native' }
isDragEnabled={ isDragEnabled }
label={ label }
max={ max }
min={ min }
min={ min === -Infinity ? undefined : min }
max={ max === Infinity ? undefined : max }
ref={ mergedRef }
required={ required }
step={ step }
Expand Down

0 comments on commit 4602271

Please sign in to comment.