Alpine v3
Opened this issue ยท 13 comments
It currently doesn't work with new version of Alpine. Is there any plans for alpine v3 support?
This is the error when do the sorting and using alpinejs v3
Unable to call component method. Public method [__v_raw] not found on component: [profile.edit-profile-page]
Any news about alpinejs v3?
Some ETA when Alpine v3 will work?
@asantibanez Liking the package, but it's the same for me...
As a workaround I have done the following:
- remove
<x-laravel-blade-sortable::scripts/>
- copy content from the removed component (
asantibanez/laravel-blade-sortable/resources/views/components/scripts.blade.php
) into my Livewire component
Change:
this.wireComponent.call(
this.wireOnSortOrderChange,
this.sortOrder,
previousSortOrder,
this.name,
from,
to,
)
to
@this[this.wireOnSortOrderChange](
this.sortOrder,
previousSortOrder,
this.name,
from,
to,
)
Any updates on this?
Hi,
We encountered same issue with Alpine V3.
As @SebastianSchoeps workaround works fine, we submitted PR #11
Same problem with alpine V3 "__v_raw"
Hola Andres @asantibanez , please when you can check the PR, such a good package
Hi,
We encountered same issue with Alpine V3.
As @SebastianSchoeps workaround works fine, we submitted PR #11
Hi @brocorp-dev I don't know if its just me, but Im getting an error: Trying to get property 'id' of non-object (View: .../components/scripts.blade.php) any ideas ? appreciate the help
@nam-co I got that error too. I was able to solve it by adding the following to the page where I'm using it: <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/Sortable/1.6.0 /Sortable.js"></script> maybe this will help you too.
Thanks @rolinbos , I ended using sortable directly because I needed features like 'clone', but I will keep it in mind, is this a unreleased version of sortable?
Just got across this, ended up using a method similar to @SebastianSchoeps, however, just replaced references to this.wireComponent
to this.$wire
.