I have got a horizontal menu that appears and disappears when you scroll away from the header. This works on all pages when I start the preview on the page but when I navigate to another page the menu gets stuck in the state that it was in when I navigated away. There is only one page with sub pages that it works on every time even if I navigate to that page. I have put the code into the site box so it should work on every page, and all the elements are toggled to be on every page or is the header. Iām not sure what Iām missing?
export function header1_viewportLeave(menuAppear) {
menuAppear=$w(ā#MainMenuā).show(), $w(ā#MainMenuBackgroundā).show()
;}
export function header1_viewportEnter(menuDisappear) {
menuDisappear=$w(ā#MainMenuā).hide(), $w(ā#MainMenuBackgroundā).hide()
;}
Hey,
Iām not sure that I fully understand the scenario. Please send us a video of the issue using screencast . Simply recreate the issue while recording the steps and add the screencast.com URL to your response. Moreover, please send us the site URL.
We recommend to avoid using commas when executing multiple statements. Instead, you should separate each statement using ā ; '. Moreover, we recommend writing each statement on a different line .
In order to resolve the issue, please add the following code to your site section: