message: fix(number-input): fix a11y issue with empty aria-valuetext
diff: @@ -237,8 +237,18 @@ export function useNumberInput(props: UseNumberInputProps = {}) {
  * @see https://www.w3.org/TR/wai-aria-practices-1.1/#wai-aria-roles-states-and-properties-18
  * @see https://www.w3.org/TR/wai-aria-1.1/#aria-valuetext
  */
  - const ariaValueText =
  - getAriaValueText?.(counter.value) ?? counter.value.toString()
  + const _getAriaValueText = () => {
  + const text = getAriaValueText?.(counter.value)
  + if (text != null) {
  + return text
  + }
  +
  + const defaultText = counter.value.toString()
  + // empty string is an invalid ARIA attribute value
  + return !defaultText ? undefined : defaultText
  + }
  +
  + const ariaValueText = _getAriaValueText()
  /**
  * Function that clamps the input's value on blur
  