Cleave.js: When props change, the <input> is not updated

Created on 6 Sep 2016  路  1Comment  路  Source: nosir/cleave.js

This bug is best demonstrated with this fiddle:
https://jsfiddle.net/61b73gyu/2/

Try changing the input box's value, and see that the class empty is not removed from the input box, even though the value is not empty anymore.

This is because the props are saved in the state as other, but when the props change, nothing is updating the state (and therefore, no re-render).

I will open a PR which solves this.

bug

Most helpful comment

Cool, merged, thanks @giladgo

>All comments

Cool, merged, thanks @giladgo

Was this page helpful?
0 / 5 - 0 ratings

Related issues

periabyte picture periabyte  路  7Comments

d3bgger picture d3bgger  路  4Comments

melbon picture melbon  路  3Comments

CaptainYarb picture CaptainYarb  路  3Comments

dmason30 picture dmason30  路  5Comments