diff --git a/app/assets/javascripts/liveSearch.js b/app/assets/javascripts/liveSearch.js index 240b84114..25cf880e5 100644 --- a/app/assets/javascripts/liveSearch.js +++ b/app/assets/javascripts/liveSearch.js @@ -27,6 +27,12 @@ }); + // make sticky JS recalculate its cache of the element's position + // because live search can change the height document + if ('stickAtBottomWhenScrolling' in GOVUK) { + GOVUK.stickAtBottomWhenScrolling.recalculate(); + } + };