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

v-pre doesn't work as an $attribute because it expands to v-pre="v-pre" #102

Closed
jackmcdade opened this issue Sep 26, 2024 · 5 comments
Closed

Comments

@jackmcdade
Copy link

If you're mixing and matching Vue and Flux, setting a v-pre attribute on a flux component doesn't work because Vue is looking for _specifically v-pre, while Flux expands all null value attributes to attr="attr". It would be great if there was a way to set a null attribute.

Not critical of course because I can publish the component and add it myself, but it sure would be nice :)

Love flux so much dude you have no idea.

@joshhanley
Copy link
Member

@jackmcdade that is an issue with Blade components, they auto-expand null value attributes like that for some reason. To get around it, I just do disabled="true" but it's not ideal.

@jackmcdade
Copy link
Author

Ahh, I should have known that. Thanks man!

@joshhanley
Copy link
Member

@jackmcdade no worries! 🙂

@jackmcdade
Copy link
Author

Alas, v-pre="true" doesn't work. But at least I know it ain't Flux/Livewire's fault 👍

@joshhanley
Copy link
Member

Bugger 😕

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