Closed lekevoid closed 2 years ago
I'd like to add that the live demo seems to be having the same issue... I made a video to show what I'm seeing : https://imgur.com/a/Fq0lAOb
Thanks again !
Thanks for noticing this, It was worked well before. Not sure if it happened after the last merge.
Are you able to find the issue? I'm not able to look at it right now.
Hi ! Yes actually, I went to SO and they found the bug, it was the @click.away="isOpen = false"
directive in the navbar being misplaced.
https://stackoverflow.com/questions/70828204/neat-stack-starter-is-behaving-strangely/70830105#70830105
I did the change and it's now working on my side.
Thanks. I have updated the code. Also, I suggest you upvote and mark the SO answer as accepted.
Hi !
I have discovered the NEAT stack recently thanks to a Redditor, and I'm thrilled about learning it in-depth. I'm having a hard time with the starter though. When I go on mobile, and I click on the burger menu on the top navbar, it display both icons (the burger and the X) on top of each other, but the menu doesn't unfold. If I pass isOpen into an element with x-html, it shows me
false
all the time, even when I click the burger menu icon. It never turns totrue
.Here's my code from
/src/_includes/partials/navbar.html
. I didn't really change anything to it apart from thex-html="isOpen"
.Here's my
package.json
. I didn't change anything to the starter pack other than upgrade alpinejs to version 3.8.1, I thought maybe it could help.In fact, I just now tried something, the weirdest thing happened... I opened my localhost:8080 on two different browsers, Chrome and Firefox. When I click the burger icon in Chrome, it does what I described above in Chrome, but it opens the menu in Firefox ! And when I click the icon in Firefox, it "fails" in Firefox, but it opens in Chrome !
If it helps, I use Chrome 96.0.4664.110 and Firefox 96.0.2, on Windows.
Thank you for your help !