Skip to content

dont work with hooks #101

@patricklongo1

Description

@patricklongo1

if u try use hooks.. its do not works.

Ex:
const [price, setPrice] = useState('');

<CurrencyInput
decimalSeparator=","
thousandSeparator="."
prefix="R$ "
onChangeEvent={(event, maskedvalue, floatvalue) =>
setPrice(floatvalue)
}
/>

the input keep reseting...
can someone try fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions