Skip to content

Commit

Permalink
cleaning up unintentional changes in NavMobile
Browse files Browse the repository at this point in the history
  • Loading branch information
stephiescastle committed Sep 16, 2024
1 parent ea4cef7 commit 820b7ba
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/vue/src/components/NavMobile/NavMobile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@
</transition>
</template>
<script lang="ts">
// @ts-nocheck
import { defineComponent } from 'vue'
import { mapStores } from 'pinia'
import { eventBus } from './../../utils/eventBus'
Expand Down Expand Up @@ -194,7 +193,7 @@ export default defineComponent({
default: null
}
},
// emits: ['closeMobileMenu', 'openMobileMenu'],
emits: ['closeMobileMenu', 'openMobileMenu'],
data() {
return {
menuVisible: false,
Expand Down Expand Up @@ -255,15 +254,14 @@ export default defineComponent({
closeMenu() {
if (this.menuVisible) {
this.menuVisible = false
// this.$emit('closeMobileMenu')
this.$emit('closeMobileMenu')
if (document.body) document.body.classList.remove('overflow-hidden')
}
},
openMenu() {
if (!this.menuVisible) {
console.log('opening mobile menu')
this.menuVisible = true
// this.$emit('openMobileMenu')
this.$emit('openMobileMenu')
if (document.body) document.body.classList.add('overflow-hidden')
}
},
Expand Down

0 comments on commit 820b7ba

Please sign in to comment.