Open adrelliott opened 3 years ago
Ah balls - clearly didn't do the correct markup to get the code to format properly.
Here's a gist.
Oh, and don't forget to the same for the notification menu.
Thanks so much @adrelliott , the profile & notification menu works on Alpine 2.x.x but not 3.x.x, and your solution works for me 👍
Sorry for horrible formatting. I didn't know how to format code on GitHub.
I am a back end developer and JS makes my head hurt.
However, after a few hours of mucking about trying to get the menus to toggle visible:invisible, I realised that the issue was which element the @click.away method was on.
TL;DR: Move the @click.away() method up to the
MOVE THE LINE
@click.away="closeProfileMenu"
` ELEMENT ABOVE `` HERE:-