Using anvil server on local machine and having the app that uses new slot functionality for the forms template the menu button doesn’t show the menu when its collapsed:
It works fine when hosted on Anvil cloud.
It works fine when hosted on local server and running the app on mobile device.
It doesn’t work when hosted on local server and running the app on pc web browser.
Once the hamburger button is clicked it collapses the menu but another click does nothing, the menu stays collapsed.
Really? I thought there is enough info provided. Maybe the reason is not so many guys host the server themself and do not have yet many apps that uses new layout feature that got introduced recently.
Right hand side hosted on Anvil, works as expected.
First click on hamburger button and menu collapses, another click it expands.
Left hand size hosted locally using Anvil App Server (latest version 1.10.1. tested on different operating systems: Ubuntu and Windows, and multiple different web browsers).
First click on hamburger button and menu collapses, another click and nothing happens.
That, to me , suggestion something about your local version is not removing the left-nav element from the DOM when hiding the side bar because that is the logic that triggers the showSidebar() function.
You could add logic to the html, similar to the custom button that updates a flag as well, as a work around, although it’s much less dynamic. I’m not sure the root cause though.
I can submit this as a bug in the github repo for the anvil app server but I would like to be sure more people are experiencing same issue when hosting locally apps with new layout feature.
Just to add old type of apps without that “slot” functionality work as expected when hosted locally.
I’m having some major issues with this new version. The app relies on anvil_extras. Everything works as expected on NEW version if hosting via anvil. The anvil app server fails miserably. I have forms that are out of place, I have many components that should be invisible showing up (and vice versa). The scaling does not match what I have in the anvil-hosted version. The one way to fix is for me to manually go into the anvil.yaml file and change the version to “2” and comment out the legacy features line. Everything else works as expected when I do this (including the hamburger menu correctly expanding/collapsing the side menu).