All changes for versions released after July 17, 2020 are listed in the releases page for this repo. This file is preserved for versions released before July 17. 2020.
- Fixes an infinite loop when retroactively adding input
- Fix passing a new unmasked
value
prop to the field
- Tests rewritten using jest
- Calling onChange will now return an event target that will also include id and name
- MaskedField is a stateless functional component now, so a
ref
cannot be passed to it. If you need a ref to theinput
node, use theinputRef
prop.
- Typescript types now included
- Accept an
inputRef
prop to obtain a ref of the input node
- Rewritten in Typescript
- Tests rewritten using enzyme
- Fix typing when cursor starts at the index a masked character
- Support React v16
- Remove all React 15.4 warnings
- Fix to work with React 15.0
- Remove
dist
files - Internal changes
- Don't set the cursor position on componentDidUpdate unless the masked field is focused
- Only render
input
of type"text"
- Fix typing when the cursor is in the middle of an empty field
- Fix the case when a mask contains characters that could fit earlier