Skip to content

Commit d737c0e

Browse files
authored
Merge pull request #605 from qonto/migrate-to-iti-v18
Replace autoHideDialCode by autoInsertDialCode
2 parents 98068be + 86b3cff commit d737c0e

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

ember-phone-input/src/components/phone-input.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ export default Component.extend({
258258
} = this;
259259

260260
let options = {
261-
autoHideDialCode: true,
261+
autoInsertDialCode: false,
262262
nationalMode: true,
263263
allowDropdown,
264264
autoPlaceholder,

test-app/tests/integration/components/phone-input-test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,12 @@ module('Integration | Component | phone-input', function (hooks) {
8787
assert.dom('input').hasValue(newValue);
8888
});
8989

90+
test('should not insert the dial code by default', async function (assert) {
91+
await render(hbs`<PhoneInput />`);
92+
93+
assert.dom('input').hasValue('');
94+
});
95+
9096
test('can update the country', async function (assert) {
9197
assert.expect(2);
9298

0 commit comments

Comments
 (0)