Skip to content

Commit

Permalink
remove spaces from option select
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickpatrickpatrick committed Nov 7, 2023
1 parent 46aa776 commit 2cc7947
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
this.isClosedOnLoad = this.$optionSelect.getAttribute('data-closed-on-load')
this.isClosedOnLoadMobile = this.$optionSelect.getAttribute('data-closed-on-load-mobile')

this.init()
this.init()
}

OptionSelect.prototype.init = function () {
Expand Down Expand Up @@ -157,6 +157,7 @@ window.GOVUK.Modules = window.GOVUK.Modules || {};
* We do this in the JavaScript because if the JavaScript is not active then the button shouldn't
* be there as there is no JS to handle the click event.
*/

var containerHead = this.$optionSelect.querySelector('.js-container-button')
var jsContainerHeadHTML = containerHead.innerHTML

Expand Down

0 comments on commit 2cc7947

Please sign in to comment.