-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
Laravel component issue with Alpinejs #54015
Comments
related: #50994 and i think it won't fix. try: <x-test :attributes="(new \Illuminate\View\ComponentAttributeBag())->merge(['x-transition' => ''])">
content
</x-test> |
Thanks for the suggestion When i find proper solution i will raise the PR
|
Thank you for raising this issue! I understand how this could be frustrating when integrating Alpine.js with Laravel components. I'll investigate this further to determine if we can address it directly within Laravel's attribute rendering logic. In the meantime, you can use the following workaround to ensure x-transition is rendered correctly:
This approach ensures the attribute is rendered as expected. Let me know if this helps, and I'll keep you updated on any progress toward a core fix! |
Pull request #54021 |
Laravel Version
11.33.2
PHP Version
8.3
Database Driver & Version
No response
Description
when I pass
x-transition
to a component it renders asx-transition="x-transition"
How do we fix this issue it also gives an error on the console
Steps To Reproduce
Make component
and then call the component like this
I will give the output
Need to be output
The text was updated successfully, but these errors were encountered: