rawilk / laravel-form-components

Form components built for Tailwind & Livewire.
https://randallwilk.dev/docs/laravel-form-components
MIT License
386 stars 42 forks source link

Alpine.js headless components conflict #79

Closed booni3 closed 1 year ago

booni3 commented 1 year ago

Laravel Form Components Version

7.1.6

Laravel Version

9.50.1

Alpine Version

3.10.5

Bug description

$disclosure is a new magic method which ships with the new Alpine beta and is used in the new headless alpine components.

Including the @fcScripts causes the error, while, @fcJavaScript works OK.

Does fcScripts also load AlpineJs?

Steps to reproduce

No response

Relevant log output

No response

rawilk commented 1 year ago

@fcScripts does also load Alpine from a CDN. I'm working on v8 of this package right now, and I'm thinking of just getting rid of that directive all together.

rawilk commented 1 year ago

v8 of the package should work fine with those components. Feel free to re-open this issue if you're still having compatibility issues.