Using slippers 0.6.2 and alpine.js. I'm trying to pass @click.outside="open=true" to the component but it doesn't work. Upon testing, other attributes work e.g. name. I also tried x-on:click.outside (like in the docs) but it doesn't work.
Component nav-bottom-menu:
<div {% attrs name x-on:click.outside %}></div>
Using the component:
{% nav-bottom-menu name="test" x-on:click.outside="open=true" %}
HTML Output:
<div name="test"></div>
Is this a bug or intended behaviour? I'm new to slippers and alpine.js so I'm open to suggestions if there are other ways to achieve what I'm trying to do.
Using slippers 0.6.2 and alpine.js. I'm trying to pass
@click.outside="open=true"
to the component but it doesn't work. Upon testing, other attributes work e.g.name
. I also triedx-on:click.outside
(like in the docs) but it doesn't work.Component
nav-bottom-menu
:<div {% attrs name x-on:click.outside %}></div>
Using the component:
{% nav-bottom-menu name="test" x-on:click.outside="open=true" %}
HTML Output:
<div name="test"></div>
Is this a bug or intended behaviour? I'm new to slippers and alpine.js so I'm open to suggestions if there are other ways to achieve what I'm trying to do.
Thanks.