Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{% attrs %} does not work with attributes containing the dot character . . #56

Open
elpachongco opened this issue Oct 14, 2023 · 1 comment

Comments

@elpachongco
Copy link

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.

Thanks.

@dastanko
Copy link

The same here, slippers not passing x-on:click.outside parameter from alpine. Looks like a bug. Any chance that it will be fixed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants