Skip to content

Commit

Permalink
fix #572
Browse files Browse the repository at this point in the history
  • Loading branch information
uNmAnNeR committed Jan 20, 2023
1 parent 2befe78 commit 1255d82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-imask/src/mixin.ts
Expand Up @@ -106,7 +106,7 @@ const MASK_PROPS: { [key in keyof (IMask.AllMaskedOptions & ReactMaskProps)]: an
]),
};

const MASK_PROPS_NAMES = Object.keys(MASK_PROPS);
const MASK_PROPS_NAMES = Object.keys(MASK_PROPS).filter(p => p !== 'value');
const NON_MASK_OPTIONS_PROPS_NAMES = ['value', 'unmask', 'onAccept', 'onComplete', 'inputRef'];
const MASK_OPTIONS_PROPS_NAMES = MASK_PROPS_NAMES.filter(pName =>
NON_MASK_OPTIONS_PROPS_NAMES.indexOf(pName) < 0
Expand Down

0 comments on commit 1255d82

Please sign in to comment.