Skip to content

Commit 2da5d49

Browse files
authored
Merge pull request #3017 from catchpoint/signup_autofill_country
Signup autofill country
2 parents ec2c123 + 45f8ee0 commit 2da5d49

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

www/templates/account/plans/includes/billing-address-form.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
</div>
1616
<div class="form-input state">
1717
<label for="state">State</label>
18-
<select name="state" data-country-selector="state-selector" required>
18+
<select autocomplete="off" name="state" data-country-selector="state-selector" required>
1919
<?php foreach ($state_list as $state) : ?>
2020
<option value="<?= $state['code'] ?>">
2121
<?= $state['name']; ?>
@@ -25,7 +25,7 @@
2525
</div>
2626
<div class="form-input country">
2727
<label for="country">Country</label>
28-
<select name="country" data-country-selector="selector" required>
28+
<select autocomplete="off" name="country" data-country-selector="selector" required>
2929
<?php foreach ($country_list as $country) : ?>
3030
<option value="<?= $country["code"] ?>" <?php ($country["code"] === "US") ? 'selected' : '' ?>>
3131
<?= $country["name"]; ?>

www/templates/account/signup/step-2.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,17 @@
3939
</div>
4040
<div class="form-input state">
4141
<label for="state">State</label>
42-
43-
<select name="state" data-country-selector="state-selector" required>
42+
<select autocomplete="off" name="state" data-country-selector="state-selector" required>
4443
<?php foreach ($state_list as $state) : ?>
4544
<option value="<?= $state['code'] ?>">
4645
<?= $state['name']; ?>
4746
</option>
4847
<?php endforeach; ?>
4948
</select>
50-
5149
</div>
5250
<div class="form-input country">
5351
<label for="country">Country</label>
54-
<select name="country" data-country-selector="selector" required>
52+
<select autocomplete="off" name="country" data-country-selector="selector" required>
5553
<?php foreach ($country_list as $country) : ?>
5654
<option value="<?= $country["code"] ?>" <?php ($country["code"] === "US") ? 'selected' : '' ?>>
5755
<?= $country["name"]; ?>

0 commit comments

Comments
 (0)