Reset sticky component before clicking back button on browser

This commit is contained in:
Julian Herrero
2019-02-04 17:00:01 +01:00
committed by decabeza
parent eca4d773a0
commit 2c45f178cb

View File

@@ -9,3 +9,5 @@ App.FoundationExtras =
$("[data-sticky]").foundation("destroy") if $("[data-sticky]").length
$(document).on("page:before-unload", clearSticky)
window.addEventListener("popstate", clearSticky, false)