x-data nested in another x-data #2206
Unanswered
tengkuzulfadli
asked this question in
1. Help
Replies: 1 comment
-
I had a similar question that was solved using getters. Hope that helps! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I tried to figure out how to nested x-data inside another x-data on responsive navbar. The mega menu that I'm building is quite complicated where it has 3 levels.
On responsive navbar, I added x-data for the toggle button and placed the x-show on the li tag. The problem is, inside the li tag has another x-data that holding a toggle function of Level 2 & Level 3 - Navbar. It's working perfectly on mobile but all navbar is hidden.
Any idea the best way to make it works?
`
I'm not going to insert all the navbar code because it has up to 1500 lines but the above code is a part of the navbar code. I did try to use $refs and $parent but it's still not working
Beta Was this translation helpful? Give feedback.
All reactions