From f3a31e00d45a824ccd67a2ce1d77f19a1240aef8 Mon Sep 17 00:00:00 2001 From: Gregory Igelmund Date: Mon, 4 Mar 2024 15:54:38 +0100 Subject: [PATCH] application.js: Call updateHeader when turbo:render completed --- app/assets/javascripts/application.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index e9cc08606..c71c0652d 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -112,6 +112,7 @@ $(document).ready(function () { updateHeader(); $(window).resize(updateHeader); + $(document).on("turbo:render", updateHeader); }, 0); $("#menu-icon").on("click", function (e) { -- 2.39.5