fix(number-input): label class being incorrectly mixed into the description (#5484)

* fix(number-input): label class being incorrectly mixed into the description

* chore: add issue number

---------

Co-authored-by: wulimaomao <tao@trlab.com>
Co-authored-by: WK Wong <wingkwong.code@gmail.com>
This commit is contained in:
wulimao49 2025-07-24 13:25:55 +08:00 committed by GitHub
parent a3245cefa0
commit 9dceb116ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
"@heroui/number-input": patch
---
Fixed NumberInput label class being incorrectly mixed into the description (#5489).

View File

@ -458,7 +458,7 @@ export function useNumberInput(originalProps: UseNumberInputProps) {
...props,
...descriptionProps,
"data-slot": "description",
className: slots.description({class: clsx(classNames?.label, props?.className)}),
className: slots.description({class: clsx(classNames?.description, props?.className)}),
};
},
[slots, classNames?.description],