sanniassin / react-input-mask

Input masking component for React. Made with attention to UX.
MIT License
2.22k stars 257 forks source link

when passing props value with "_", it saved in value #235

Closed coldSeattle closed 3 years ago

coldSeattle commented 3 years ago

passing: Снимок экрана 2020-09-01 в 10 34 30

Expected: +7 784 433

Received: Снимок экрана 2020-09-01 в 10 35 59

mathlimma commented 3 years ago

export interface MaskOptions { mask: string | Array<(string | RegExp)>; maskChar: string; alwaysShowMask: boolean; formatChars: Record<string, string>; permanents: number[]; }

apparently they changed the props, if you pass maskChar="" it will work

coldSeattle commented 3 years ago

Thanks!