antd-mask-input icon indicating copy to clipboard operation
antd-mask-input copied to clipboard

How to control dispatching masks outside

Open TanyuS opened this issue 2 years ago • 3 comments

  • 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

TanyuS avatar Nov 02 '22 09:11 TanyuS

Hi, @TanyuS. Did you find a way to make it work? I'm having a similar problem

joaquinipar avatar Nov 28 '22 13:11 joaquinipar

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

TanyuS avatar Dec 07 '22 09:12 TanyuS

Hi @TanyuS thanks for your solution. Feel free to send a pull request :)

antoniopresto avatar Dec 07 '22 11:12 antoniopresto