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

Field allow pasting any value #40

Open
victorwpbastos opened this issue May 5, 2017 · 3 comments
Open

Field allow pasting any value #40

victorwpbastos opened this issue May 5, 2017 · 3 comments
Assignees
Projects
Milestone

Comments

@victorwpbastos
Copy link

  1. Field is blank - IS NOT possible to paste any value, which is the desired behavior.
  2. Field value length < mask.length - IS NOT possible to paste any value, which is the desired behavior.
  3. Field value length === mask length - IS possible to paste any value, which is not desired.

In step 2, when pasting any value, the field is cleared

To test the case 3, you must select all field value and press ctrl+v.

@probil
Copy link
Owner

probil commented May 24, 2017

Sounds like a bug. I will check. Should try to write tests first.

@probil probil added this to TODO in v2 Jul 13, 2017
@probil
Copy link
Owner

probil commented Feb 21, 2018

Reproduced!

Steps:

  1. Open https://codesandbox.io/s/m3q1m5yp9x
  2. In ʼTime with seconds' enter 111111
  3. Copy word input to the clipboard
  4. Focus on ʼTime with seconds' input and press Сtrl+A + Ctrl+V

Actual: text input pasted https://i.imgur.com/sFQk5vD.png
Expected: empty input field

@probil probil added this to the 1.4.0 milestone Feb 21, 2018
@probil probil self-assigned this Feb 21, 2018
@probil probil moved this from Backlog to Planned in v2 Feb 21, 2018
@probil
Copy link
Owner

probil commented Mar 2, 2018

The problem is even bigger. You can past any value that has lower length than previosly entered value

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

No branches or pull requests

2 participants