We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 400b248 commit 2111d0aCopy full SHA for 2111d0a
src/components/nav.vue
@@ -108,6 +108,10 @@ export default {
108
methods: {
109
110
closeAllOffCanvas() {
111
+ const offcanvasElements = document.querySelectorAll('.offcanvas');
112
+ if (offcanvasElements.length === 0) {
113
+ return;
114
+ }
115
document.querySelectorAll('.offcanvas').forEach((offcanvas) => {
116
const instance = Offcanvas.getInstance(offcanvas);
117
if (instance) {
0 commit comments