fix(number-input): lable position for empty percent format (#5945)

* fix(number-input): lable position for empty percent format

* chore(changeset): fix typo
This commit is contained in:
WK 2025-11-26 13:56:48 +08:00 committed by GitHub
parent 4fa54534b2
commit ce0c298785
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
---
fix label position for empty percent format (#5941)

View File

@ -155,7 +155,7 @@ export function useNumberInput(originalProps: UseNumberInputProps) {
const inputValue = isNaN(state.numberValue) ? "" : state.numberValue;
const isFilled = !isEmpty(inputValue);
const isFilled = !isEmpty(state.inputValue) && !isEmpty(inputValue);
const isFilledWithin = isFilled || isFocusWithin;