I’ve currently got a mega menu semi-working, but it sometimes works and sometimes doesn’t. Am I doing something wrong in my code? Any suggestions are welcome.
Thanks!
export function collectionsbutton_mouseIn(event) {
$w("#box2").expand();
}
export function collectionsbutton_mouseOut(event) {
$w("#box2").collapse();
}
export function box2_mouseIn(event) {
$w("#box2").expand();
}
export function box2_mouseOut(event) {
$w("#box2").collapse();
}
The mega menu is supposed to appear when a mouse cursor hovers over a button, then the user can click on links in it. Then, it is supposed to disappear when the user’s mouse cursor hovers off the button or the mega menu.
It sometimes disappears when the mouse goes off the button, and onto the mega menu. Sometimes it works as it works as expected.