Cleave.js: Support for React defaultValue

Created on 3 Nov 2016  路  2Comments  路  Source: nosir/cleave.js

If I'm not mistaken, there seems to be no way to use defaultValue, like it is possible on an input.

Most helpful comment

Actually Cleave component is kinda uncontrolled input components.
To set a default value for Cleave component, you can pass value="some_value" in. some_value should match the initial state value outside.

All 2 comments

Actually Cleave component is kinda uncontrolled input components.
To set a default value for Cleave component, you can pass value="some_value" in. some_value should match the initial state value outside.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ArtyomBist picture ArtyomBist  路  6Comments

drugoi picture drugoi  路  5Comments

dmason30 picture dmason30  路  5Comments

YanikCeulemans picture YanikCeulemans  路  3Comments

wcedmisten picture wcedmisten  路  4Comments