Skip to content

Commit

Permalink
Ensure mobile sidebar is closed when resizing out of mobile layout
Browse files Browse the repository at this point in the history
  • Loading branch information
allmarkedup committed Sep 24, 2023
1 parent 8b28ba4 commit a95b450
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ export default function app() {
const socket = createSocket(window.SOCKET_PATH);
socket.addListener("Lookbook::ReloadChannel", () => this.updateDOM());
}

this.$watch("$store.layout.mobile", (mobile) => {
if (!mobile) {
this.$store.layout.sidebar.hidden = true;
}
});
},

navigateTo(path) {
Expand Down

0 comments on commit a95b450

Please sign in to comment.