gpietro / react-numpad

A numpad for number, date and time, built with and for React.
MIT License
138 stars 38 forks source link

Inline property with default value of type number throws an error #147

Closed gpietro closed 4 years ago

gpietro commented 4 years ago

While displaying the NumPad inline the default value passed to the component is not handled correctly. Handle in the StaticWrapper the value type and convert it to string when necessary.

https://github.com/gpietro/react-numpad/blob/523abce4459b269b93e11d9d174da21bb3eb8509/lib/components/Number.js#L58