Skip to content

Commit 1db7642

Browse files
author
Simon L. Lange
committed
Javascript error fix
1 parent b9976bb commit 1db7642

File tree

2 files changed

+2
-2
lines changed
  • web/themes/custom/fds_redwhite_theme

2 files changed

+2
-2
lines changed

web/themes/custom/fds_redwhite_theme/dist/javascripts/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3257,7 +3257,7 @@ module.exports = function (button, expanded) {
32573257
input.setAttribute('aria-label', 'Indtast søgeord');
32583258
}
32593259

3260-
for (var j = 0; j < searchSubmits.length; i++) {
3260+
for (var j = 0; j < searchSubmits.length; j++) {
32613261
var submit = searchSubmits[j];
32623262

32633263
submit.setAttribute('aria-label', 'Søg');

web/themes/custom/fds_redwhite_theme/src/javascripts/a11y.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
input.setAttribute('aria-label', 'Indtast søgeord');
1010
}
1111

12-
for (var j = 0; j < searchSubmits.length; i++) {
12+
for (var j = 0; j < searchSubmits.length; j++) {
1313
var submit = searchSubmits[j];
1414

1515
submit.setAttribute('aria-label', 'Søg');

0 commit comments

Comments
 (0)