- Moved
prop-types
from dependencies tooptionalDependencies
- This version refactors the internals to fix a bug where the input was not cleared after the component re-renders with an empty value.
- The input is now cleared when an empty value is received.
- This version fixes a little bug and refactors the component props a bit.
- Props such as
className
,name
, etc. are no longer explicity defined as props on the component. Any props not specifically defined in the docs will be passed on to the input component.
- BREAKING CHANGE: Removed
inputProps
prop. Any props that you want to provide to the input can now simply be passed directly to theCoordinateInput
component.
- The
onChange
handler now correctly fires when the input has been cleared.
- This release is a pretty major refactor which replaces the unmaintained Text Mask library with imaskjs.
- Additionally, the component has been refactored to use React Hooks instead of Class Components.
- BREAKING CHANGE: The
onChange
callback signature has changed. Instead of receiving an event as the first argument it receives the masked input value. The second argument is still an object but the properties have changed. See the docs for more info.
- BREAKING CHANGE: Removed
guide
prop - BREAKING CHANGE: Removed
showMask
prop