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

fixed bug with pasting number over another number #300

Merged
merged 1 commit into from
Oct 9, 2019
Merged

fixed bug with pasting number over another number #300

merged 1 commit into from
Oct 9, 2019

Conversation

flagoon
Copy link

@flagoon flagoon commented Oct 8, 2019

Description

There were an issue with actions triggered on onChange and onPaste. Both of them were overlapping and causing multiple rerenders, but also error with concatenating numbers onPaste (instead of replacing). Only onChange was needed, so onPaste function and prop was deleted.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have used ESLint & Prettier to follow the code style of this project.
  • I have updated the documentation accordingly. Functionality didn't change
  • I have added tests to cover my changes. Tests failed to run even on master.
  • All new and existing tests passed. Tests failed to run even on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.6%) to 93.888% when pulling d0dc593 on flagoon:bug/paste_numbers into ed4aa2b on patw0929:master.

@patw0929 patw0929 merged commit 236dca8 into patw0929:master Oct 9, 2019
patw0929 added a commit that referenced this pull request Oct 9, 2019
Bug fixes:

* #302: Remove package-lock.json
* #283: Fix: invoke onPhoneNumberChange callback with formatted value on init instead of unformatted value from previous state
* #300: fixed bug with pasting number over another number
* #299: Use cross-env to solve cross platforms issue (scripts with node env variables)

Docs:

* #298: Update LICENSE
* #297: Update README.md
* #294: Removed bash highlighting for npm/yarn commands in README
andrewsantarin pushed a commit to andrewsantarin/react-intl-tel-input that referenced this pull request Feb 2, 2022
fixed bug with pasting number over another number
andrewsantarin pushed a commit to andrewsantarin/react-intl-tel-input that referenced this pull request Feb 2, 2022
Bug fixes:

* patw0929#302: Remove package-lock.json
* patw0929#283: Fix: invoke onPhoneNumberChange callback with formatted value on init instead of unformatted value from previous state
* patw0929#300: fixed bug with pasting number over another number
* patw0929#299: Use cross-env to solve cross platforms issue (scripts with node env variables)

Docs:

* patw0929#298: Update LICENSE
* patw0929#297: Update README.md
* patw0929#294: Removed bash highlighting for npm/yarn commands in README
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.

None yet

3 participants