From 482f339da2ce177ab54847fe4cb13ee392dc068c Mon Sep 17 00:00:00 2001 From: shibao Date: Sun, 22 Jan 2023 23:49:12 -0500 Subject: [PATCH] show topbar in more situations --- assets/js/app.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/assets/js/app.js b/assets/js/app.js index 8b98397..d667e8b 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -50,6 +50,8 @@ Alpine.start() topbar.config({ barThickness: 1, barColors: { 0: '#fff' }, shadowColor: 'rgba(0, 0, 0, .3)' }) window.addEventListener('phx:page-loading-start', info => topbar.show()) window.addEventListener('phx:page-loading-stop', info => topbar.hide()) +window.addEventListener('submit', info => topbar.show()) +window.addEventListener('beforeunload', info => topbar.show()) // connect if there are any LiveViews on the page liveSocket.connect()