blackbing / react-numeral-input

It is a very tiny component which is a replacement of HTML input element for post-editing format of number values. ex. 1000000 -> 1,000,000
http://blackbing.github.io/react-numeral-input/
MIT License
11 stars 4 forks source link

How to change fmt on v0.3.3 #5

Closed stenehall closed 8 years ago

stenehall commented 8 years ago

After moving fmt out from props in https://github.com/blackbing/react-numeral-input/commit/f14188289405880a9cd5249f5181647b3be5d4d5 how are we supposed to change the format?

Atm fmt is a const that we can't pass to react-numeral-input. Or am I missing something obvious?

We can no longer do <NumeralInput fmt="$00,00">

blackbing commented 8 years ago

ooops, I thought it is not valued props. I will add it back If it is necessary props.

blackbing commented 8 years ago

fixed at 0.4.0