Skip to content

Commit 0becf68

Browse files
Remove broken autocomplete code (#475)
This got broken with the v10 upgrade. Stripping it out so that it can be later added back in again more cleanly.
1 parent 394d51e commit 0becf68

File tree

11 files changed

+9
-169
lines changed

11 files changed

+9
-169
lines changed

app/assets/javascript/x-govuk.js

Lines changed: 0 additions & 149 deletions
This file was deleted.

app/assets/sass/main.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@
2525
@import '../../components/pagination/_pagination';
2626
@import '../../components/secondary-navigation/_secondary-navigation';
2727

28-
.autocomplete__wrapper ul > li {
29-
margin-bottom: 0;
30-
}
31-
3228
///////////////////////////////////////////
3329
// Add your custom CSS/Sass styles below...
3430
///////////////////////////////////////////

app/views/apply/start.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,7 @@ <h1 class="nhsuk-heading-l">{{ pageName }}</h1>
5959
items: items,
6060
errorMessage: {
6161
text: (errors | first).text
62-
} if (errors | length),
63-
attributes: {
64-
"data-module": "autocomplete"
65-
}
62+
} if (errors | length)
6663
}) }}
6764

6865
{{ button({

app/views/layout.html

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,7 @@
7979
<!-- Custom JavaScript files can be added to this file -->
8080
{% include "includes/scripts.html" %}
8181

82-
<script src="/js/x-govuk.js"></script>
83-
<script>
84-
window.GOVUKPrototypeComponents.initAll()
85-
</script>
86-
<!-- For adding page specific JavsScript -->
82+
<!-- For adding page specific JavaScript -->
8783
{% block pageScripts %}{% endblock %}
8884
{% endblock %}
8985
{% endblock %}

app/views/lists/record/location.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
Search by name or ODS code
3939
</div>
4040
<select class="nhsuk-select" id="care-home" name="careHome"
41-
aria-describedby="care-home-hint" data-module="autocomplete" data-autoselect="" data-display-menu="" data-min-length="" data-show-all-values="" data-show-no-options-found="">
41+
aria-describedby="care-home-hint" data-autoselect="" data-display-menu="" data-min-length="" data-show-all-values="" data-show-no-options-found="">
4242
<option {% if not data.caeHome %}selected{% endif %} value=""></option>
4343

4444
{% set options = [] %}

app/views/lists/record/vaccinator.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ <h1 class="nhsuk-label-wrapper">
4747
</div>
4848

4949
<select class="nhsuk-select" id="otherVaccinator" name="otherVaccinator"
50-
data-module="autocomplete" data-autoselect="" data-display-menu="" data-min-length="" data-show-all-values="" data-show-no-options-found="">
50+
data-autoselect="" data-display-menu="" data-min-length="" data-show-all-values="" data-show-no-options-found="">
5151
<option {{ "selected" if data.otherVaccinator == "" }} value=""></option>
5252

5353
{% for otherVaccinator in otherVaccinators %}

app/views/record-vaccinations/location.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
Search by name or ODS code
3131
</div>
3232
<select class="nhsuk-select" id="care-home" name="careHome"
33-
aria-describedby="care-home-hint" data-module="autocomplete" data-autoselect="" data-display-menu="" data-min-length="" data-show-all-values="" data-show-no-options-found="">
33+
aria-describedby="care-home-hint" data-autoselect="" data-display-menu="" data-min-length="" data-show-all-values="" data-show-no-options-found="">
3434
<option {% if not data.caeHome %}selected{% endif %} value=""></option>
3535

3636
{% set options = [] %}

app/views/records/location.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
Search by name or ODS code
4141
</div>
4242
<select class="nhsuk-select" id="care-home" name="careHome"
43-
aria-describedby="care-home-hint" data-module="autocomplete" data-autoselect="" data-display-menu="" data-min-length="" data-show-all-values="" data-show-no-options-found="">
43+
aria-describedby="care-home-hint" data-autoselect="" data-display-menu="" data-min-length="" data-show-all-values="" data-show-no-options-found="">
4444
<option {% if not data.caeHome %}selected{% endif %} value=""></option>
4545

4646
{% set options = [] %}

app/views/records/vaccinator.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ <h1 class="nhsuk-label-wrapper">
5050
</div>
5151

5252
<select class="nhsuk-select" id="otherVaccinator" name="otherVaccinator"
53-
data-module="autocomplete" data-autoselect="" data-display-menu="" data-min-length="" data-show-all-values="" data-show-no-options-found="">
53+
data-autoselect="" data-display-menu="" data-min-length="" data-show-all-values="" data-show-no-options-found="">
5454
<option {{ "selected" if vaccination.otherVaccinator == "" }} value=""></option>
5555

5656
{% for otherVaccinator in otherVaccinators %}

app/views/regions/add-organisation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ <h1 class="nhsuk-label-wrapper">
3333
Search by name or ODS code
3434
</div>
3535
<select class="nhsuk-select" id="organisationCode" name="organisationCode"
36-
data-module="autocomplete" data-autoselect="" data-display-menu="" data-min-length="" data-show-all-values="" data-show-no-options-found="">
36+
data-autoselect="" data-display-menu="" data-min-length="" data-show-all-values="" data-show-no-options-found="">
3737
<option selected value=""></option>
3838

3939
{% set options = [] %}

0 commit comments

Comments
 (0)