antoniopresto / antd-mask-input

MIT License
89 stars 37 forks source link

Error when deleting characters in MaskedInput with dynamic mask #67

Open elita173 opened 1 year ago

elita173 commented 1 year ago
  1. Running the storybook, go to Dynamic Mask
  2. Enter numbers, and then go with the arrows to the left
  3. Delete a character
  4. Notice there is an error in the console It also happens with RGB, which is using an array of masks

Do you know why it happens? Thanks for reading!

leoqbc commented 1 year ago

I'm facing the same problem, using array of masks as in the doc example, error only happens when after the input is fulfilled and someone tries to overwrite a char or number.

Shahzaibmalik55 commented 1 year ago

I'm facing the same issue. does anyone find a solution for this OR it's a known bug of this lib?

Shahzaibmalik55 commented 1 year ago

created the PR for this fix https://github.com/antoniopresto/antd-mask-input/pull/77