Nav bar is opened on website first launch on mobile


Topic: Nav bar is opened on website first launch on mobile

GuillaumeDgr pro premium priority asked 4 months ago

Expected behavior Website first launch without navbar opened. Actual behavior Nav bar is opened on website first launch on mobile (I use nuxt js) and toggler visible (at bottom).

Resources (screenshots, code snippets etc.) enter image description here


Mikołaj Smoleński staff commented 4 months ago

Are you able to recreate this issue in our snippets creator? https://mdbootstrap.com/snippets/

Keep coding,  Mikołaj from MDB


GuillaumeDgr pro premium priority commented 2 months ago

What do you mean ? Is this bug fixed ? Thanks


Mikołaj Smoleński staff commented 2 months ago

We'll try to fix it with the next release (26.07).

Keep coding,  Mikołaj from MDB


Mikołaj Smoleński staff commented 2 months ago

Hi there again,

Unfortunately Navbar component will not work properly in Nuxt with SSR as its state depends on the browser window object, which is undefined on the server-side.

To fix the issue, please disable ssr: https://nuxtjs.org/docs/2.x/configuration-glossary/configuration-ssr

Keep coding, Mikołaj from MDB


GuillaumeDgr pro premium priority commented 2 months ago

Bug seems to be fixed, thks


Please insert min. 20 characters.
Status

Resolved

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: MDB Vue
  • MDB Version: MDB4 6.7.2
  • Device: Mac book pro
  • Browser: Firefox developers
  • OS: MacOs
  • Provided sample code: No
  • Provided link: No
Tags