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

add 'allowAutoFormat' option to disable automatic transformation letters -> numbers #268

Closed

Conversation

StanislauKashenou
Copy link

@StanislauKashenou StanislauKashenou commented Sep 26, 2020

Description

Bug description: letters transformed to numbers on user input (trying to fit to valid phone number) - this behaviour was pretty confusing and we hadn't any options to turn-off this transformation.

Solution:
With @allowAutoFormat={{false}} option we can disable transformation, so user input remains unchanged.
Default value is true

Changes

  • new option added @allowAutoFormat={{false}}. If false - letters not transformed to numbers automatically.
  • Added demo docs and test.

Screenshots

Before:

input: +353 7890 test for both cases

image

Reproduction instructions

Checklist

  • Obvisously, add your option

  • Do not forget to write inline documentation for your code in addon/components/phone-input

  • Add a test, probably in tests/integration/components/phone-input-test.js

  • Add a playground example in tests/dummy/app/pods/docs/components/phone-input/all-options/template

@StanislauKashenou
Copy link
Author

replased with PR from company-account
#269

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

Successfully merging this pull request may close these issues.

1 participant