Skip to content

Commit

Permalink
Merge pull request #3009 from alectejada/signup_autofill_country
Browse files Browse the repository at this point in the history
Disabled autocomplete on country and state select boxes
  • Loading branch information
claud-io authored Nov 29, 2023
2 parents 5dcc6b7 + 9523c3e commit 45f8ee0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions www/templates/account/plans/includes/billing-address-form.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</div>
<div class="form-input state">
<label for="state">State</label>
<select name="state" data-country-selector="state-selector" required>
<select autocomplete="off" name="state" data-country-selector="state-selector" required>
<?php foreach ($state_list as $state) : ?>
<option value="<?= $state['code'] ?>">
<?= $state['name']; ?>
Expand All @@ -25,7 +25,7 @@
</div>
<div class="form-input country">
<label for="country">Country</label>
<select name="country" data-country-selector="selector" required>
<select autocomplete="off" name="country" data-country-selector="selector" required>
<?php foreach ($country_list as $country) : ?>
<option value="<?= $country["code"] ?>" <?php ($country["code"] === "US") ? 'selected' : '' ?>>
<?= $country["name"]; ?>
Expand Down
6 changes: 2 additions & 4 deletions www/templates/account/signup/step-2.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,17 @@
</div>
<div class="form-input state">
<label for="state">State</label>

<select name="state" data-country-selector="state-selector" required>
<select autocomplete="off" name="state" data-country-selector="state-selector" required>
<?php foreach ($state_list as $state) : ?>
<option value="<?= $state['code'] ?>">
<?= $state['name']; ?>
</option>
<?php endforeach; ?>
</select>

</div>
<div class="form-input country">
<label for="country">Country</label>
<select name="country" data-country-selector="selector" required>
<select autocomplete="off" name="country" data-country-selector="selector" required>
<?php foreach ($country_list as $country) : ?>
<option value="<?= $country["code"] ?>" <?php ($country["code"] === "US") ? 'selected' : '' ?>>
<?= $country["name"]; ?>
Expand Down

0 comments on commit 45f8ee0

Please sign in to comment.