Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The mask doesn't work when you manually replace selected text #531

Open
valsaven opened this issue Oct 1, 2021 · 1 comment
Open

The mask doesn't work when you manually replace selected text #531

valsaven opened this issue Oct 1, 2021 · 1 comment

Comments

@valsaven
Copy link

valsaven commented Oct 1, 2021

Description

The mask doesn't work when you manually replace selected text.
Or when you paste it with Ctrl+V.

V-Mask and Vue versions

2.3.0, 2.6.10

Reproduction Link

Peek 2021-10-01 16-00

Such behavior can easily be reproduced here: https://v-mask-demo.netlify.app

Steps to reproduce

  1. Create a mask for numbers only.
  2. Enter some numbers
  3. Select a part of the text with the mouse
  4. Press any latin letter. As a result, a letter will be inserted.

What is Expected?

Nothing happens / the selected text will clear.

What is actually happening?

The mask doesn't work.

@probil
Copy link
Owner

probil commented Oct 1, 2021

Hi @valsaven

It's similar to #40. The fix would require to change architecture. With current v-mask wrapper it won't work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants