Skip to content

Commit

Permalink
Merge pull request #3129 from alphagov/add-scrolltracker-reset-event
Browse files Browse the repository at this point in the history
Add scrolltracker reset event
  • Loading branch information
andysellick authored Aug 11, 2023
2 parents 3153387 + 78ede11 commit 71d6dc1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/assets/javascripts/live_search.js
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,8 @@
this.$loadingBlock.textContent = ''
this.$loadingBlock.style.display = 'none'
}
// send this event to notify the scroll tracker to reset, if listening
window.GOVUK.triggerEvent(this.$form, 'dynamic-page-update')
}

LiveSearch.prototype.restoreBooleans = function restoreBooleans () {
Expand Down

0 comments on commit 71d6dc1

Please sign in to comment.