Skip to content

Commit

Permalink
Adds popstate set timeout handler for cx toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
MTrost committed Jul 28, 2024
1 parent 36cfb4f commit b5db692
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions resources/public/js/cx.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ function add_handle_cx_toggle() {

addEventListener('DOMContentLoaded', add_handle_cx_toggle);
addEventListener('htmx:afterSwap', add_handle_cx_toggle);
addEventListener('popstate', () => setTimeout(add_handle_cx_toggle, 0));

0 comments on commit b5db692

Please sign in to comment.