mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
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:
parent
4fa54534b2
commit
ce0c298785
5
.changeset/famous-dodos-type.md
Normal file
5
.changeset/famous-dodos-type.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"@heroui/number-input": patch
|
||||
---
|
||||
|
||||
fix label position for empty percent format (#5941)
|
||||
@ -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;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user