Skip to content

amp-inputmask: Leading Zero been stripped when I paste into field #21706

@eduardogoncalves

Description

@eduardogoncalves

What's the issue?

When I paste the text 00005127120 into the input, it should displays 000.051.271-20, but is showing 005.127.120. If I paste 00245127120 it shows 245.127.120.

How do we reproduce the issue?

You can reproduce it here: https://codepen.io/egoncalves/pen/MRKymb
step-by-step instructions for reproducing the issue:

  1. Step 1: Copy the text 00005127120
  2. Step 2: Paste it into input

What browsers are affected?

All browsers

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions