message: fix: issue where number-input buttons are not disabled properly
diff: @@ -336,7 +336,9 @@ export function useNumberInput(props: UseNumberInputProps = {}) {
  )
  const getIncrementButtonProps: PropGetter = useCallback(
  - (props = {}, ref = null) => ({
  + (props = {}, ref = null) => {
  + const disabled = isDisabled || (keepWithinRange && counter.isAtMax)
  + return {
  ...props,
  ref,
  role: "button",
  @@ -345,14 +347,17 @@ export function useNumberInput(props: UseNumberInputProps = {}) {
  onMouseUp: callAllHandlers(props.onMouseUp, spinner.stop),
  onMouseLeave: callAllHandlers(props.onMouseUp, spinner.stop),
  onTouchEnd: callAllHandlers(props.onTouchEnd, spinner.stop),
  - disabled: keepWithinRange && counter.isAtMax,
  - "aria-disabled": ariaAttr(keepWithinRange && counter.isAtMax),
  - }),
  + disabled,
  + "aria-disabled": ariaAttr(disabled),
  + }
  + },
  [pointerDown, counter.isAtMax, keepWithinRange, spinUp, spinner.stop],
  )
  const getDecrementButtonProps: PropGetter = useCallback(
  - (props = {}, ref = null) => ({
  + (props = {}, ref = null) => {
  + const disabled = isDisabled || (keepWithinRange && counter.isAtMin)
  + return {
  ...props,
  ref,
  role: "button",
  @@ -361,9 +366,10 @@ export function useNumberInput(props: UseNumberInputProps = {}) {
  onMouseLeave: callAllHandlers(props.onMouseLeave, spinner.stop),
  onMouseUp: callAllHandlers(props.onMouseUp, spinner.stop),
  onTouchEnd: callAllHandlers(props.onTouchEnd, spinner.stop),
  - disabled: keepWithinRange && counter.isAtMin,
  - "aria-disabled": ariaAttr(keepWithinRange && counter.isAtMin),
  - }),
  + disabled,
  + "aria-disabled": ariaAttr(disabled),
  + }
  + },
  [pointerDown, counter.isAtMin, keepWithinRange, spinDown, spinner.stop],
  )
  