Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

Upgrade intl-tel-input #1107

Merged
merged 8 commits into from
Jan 3, 2019
Merged

Conversation

Blackbaud-SteveBrush
Copy link
Member

@Blackbaud-SteveBrush Blackbaud-SteveBrush commented Jan 2, 2019

Original contribution: blackbaud/skyux#1105
Issue: blackbaud/skyux#1104
Docs: N/A

@codecov-io
Copy link

codecov-io commented Jan 2, 2019

Codecov Report

Merging #1107 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #1107   +/-   ##
======================================
  Coverage     100%    100%           
======================================
  Files         174     174           
  Lines        6518    6518           
  Branches     1149    1149           
======================================
  Hits         6518    6518
Impacted Files Coverage Δ
js/sky/src/phonefield/phonefield.directive.js 100% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 159fe62...350a472. Read the comment docs.

@@ -7,7 +7,7 @@ describe('Phone Field directive', function () {
selectors = {
flagContainer: '.flag-container',
countryList: '.country-list',
localCountryTextbox: 'input[placeholder="(201) 555-5555"]',
localCountryTextbox: 'input[placeholder="(201) 555-0123"]',
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

intl-tel-input changed the default placeholder in its recent versions.

@@ -34,7 +34,7 @@
// So, its dial code should just be 1 because the area code includes the dial code.
// Example countries: Bahamas, Cayman Islands, Barbados.
if (selectedCountryData.dialCode.toString()[0] === '1') {
selectedCountryData.dialCode = 1;
selectedCountryData.dialCode = '1';
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There was a logical error in the directive where it was setting the phone number dial code to an integer instead of a string. This had to be remedied to use the newer version of the library.

Copy link
Contributor

@Blackbaud-AlexKingman Blackbaud-AlexKingman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed this fixes the two issues reported when running locally. Ship it!

@Blackbaud-SteveBrush Blackbaud-SteveBrush merged commit 4222c7d into master Jan 3, 2019
@Blackbaud-SteveBrush Blackbaud-SteveBrush deleted the contrib-upgrade-intl-tel-input branch January 3, 2019 20:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants