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

Does not work with html native dialog elements #54

Open
lampsbr opened this issue Apr 5, 2024 · 0 comments
Open

Does not work with html native dialog elements #54

lampsbr opened this issue Apr 5, 2024 · 0 comments

Comments

@lampsbr
Copy link

lampsbr commented Apr 5, 2024

Hi, I was trying to run my own native dialog-based element in a vuejs 2.x app. Just found out neither the directive or the mixin works if put in a element. Also tried wrapping like this:
<div v-on-clickaway="close"><dialog /></div>
But this also failed.
I could make it work with this syntax:
<dialog><div class="innerWrapper" v-on-clickaway="close"><content tags /></div></dialog>

It is fine for my use case, but if someone else is facing the same issue, here's a possible fix. Also please mark me if there are better solutions for this =]

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

1 participant