Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NumberControl: Fix invalid HTML attributes for infinite bounds #69033

Merged
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 }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why prop position changed? Can you please update to use max first and min later?

Copy link
Contributor Author

@Infinite-Null Infinite-Null Feb 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the feedback, I've updated the PR to maintain consistent prop ordering.

ref={ mergedRef }
required={ required }
step={ step }
Expand Down
Loading