medly / medly-components

🧩 Medly components provides numerous themable react components, each with multiple varitaions of sizes, colors, position etc.
https://medly.github.io/medly-components/
MIT License
79 stars 54 forks source link

bug: masking is not working for initial value of the TextField #687

Open samueljohnprasad opened 2 years ago

samueljohnprasad commented 2 years ago

Describe the bug

Provide a clear and concise description of the bug.

To Reproduce

Provide step-by-step instructions to reproduce the bug:

  1. to TextField, pass the masking of the phone number (XXX) XXX XXXX and pass the ten-digit phone number as the value to the TextField

    for the initial value, the masking is not working, but when the TextField is edited, the values in the TextField will be shown as for masking format

Expected behavior

Provide a clear and concise description of the behaviour expected in the above-mentioned scenario.

Screenshots

If applicable, provide screenshots to explain the bug.

Package versions

Additional context

Provide any additional information about the bug or the bug scenario.

abhishekashyap commented 2 years ago

Possible duplicate of #650