antd-mask-input
antd-mask-input copied to clipboard
How to control dispatching masks outside
-
I'm submitting a ... feature request question about how to use this project
-
Summary I've tried to use antd-mask-input for phone number input with country selection. I found a possibility to dynamically change a mask, but I cannot control it outside.
What am I doing wrong? I've prepared a sandbox https://stackblitz.com/edit/react-ts-sn4acx?file=PhoneInput.tsx
Hi, @TanyuS. Did you find a way to make it work? I'm having a similar problem
I had to override the main file from the library. As I can see, licence allows it. Here is my solution https://stackblitz.com/edit/override-antd-masked-input
Hi @TanyuS thanks for your solution. Feel free to send a pull request :)