N
Nuxt2y ago
Ryuuuu

Trying to change nuxt layout from a button

Trying to go from having sidebar to displaying split screen of the page with a document on the side, but the problem is that when changing the nuxt layout component name programatically, it refreshes the page, so it scrolls all the way to the top and closes all my open accordions and such:
No description
3 Replies
Ryuuuu
RyuuuuOP2y ago
Can i stop it from doing that?
Cake
Cake2y ago
how are u changing it
Mads
Mads2y ago
Layout has been buggy the last couple of updates. But it should be fixed in the latest version. I’ve not seen this use case before though. What version are you on?

Did you find this page helpful?