Skip to content

Commit

Permalink
Merge pull request #605 from qonto/migrate-to-iti-v18
Browse files Browse the repository at this point in the history
Replace autoHideDialCode by autoInsertDialCode
  • Loading branch information
anas7asia authored May 10, 2023
2 parents 98068be + 86b3cff commit d737c0e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ember-phone-input/src/components/phone-input.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ export default Component.extend({
} = this;

let options = {
autoHideDialCode: true,
autoInsertDialCode: false,
nationalMode: true,
allowDropdown,
autoPlaceholder,
Expand Down
6 changes: 6 additions & 0 deletions test-app/tests/integration/components/phone-input-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ module('Integration | Component | phone-input', function (hooks) {
assert.dom('input').hasValue(newValue);
});

test('should not insert the dial code by default', async function (assert) {
await render(hbs`<PhoneInput />`);

assert.dom('input').hasValue('');
});

test('can update the country', async function (assert) {
assert.expect(2);

Expand Down

0 comments on commit d737c0e

Please sign in to comment.