laravel-blade-sortable icon indicating copy to clipboard operation
laravel-blade-sortable copied to clipboard

Alpine v3

Open MariosMaggot opened this issue 3 years ago • 13 comments

It currently doesn't work with new version of Alpine. Is there any plans for alpine v3 support?

MariosMaggot avatar Jun 22 '21 08:06 MariosMaggot

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]

diazsasak avatar Jul 15 '21 14:07 diazsasak

Any news about alpinejs v3?

ehsantalkhouncheh avatar Aug 06 '21 15:08 ehsantalkhouncheh

Some ETA when Alpine v3 will work?

laraben avatar Aug 12 '21 09:08 laraben

@asantibanez Liking the package, but it's the same for me...

SebastianSchoeps avatar Aug 21 '21 20:08 SebastianSchoeps

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,
)

SebastianSchoeps avatar Aug 21 '21 20:08 SebastianSchoeps

Any updates on this?

Hesesses avatar Aug 25 '21 06:08 Hesesses

Hi,

We encountered same issue with Alpine V3.

As @SebastianSchoeps workaround works fine, we submitted PR #11

brocorp-dev avatar Aug 26 '21 06:08 brocorp-dev

Same problem with alpine V3 "__v_raw"

nam-co avatar Aug 26 '21 23:08 nam-co

Hola Andres @asantibanez , please when you can check the PR, such a good package

nam-co avatar Aug 27 '21 20:08 nam-co

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 avatar Sep 20 '21 17:09 nam-co

@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: maybe this will help you too.

rolinbos avatar Sep 29 '21 15:09 rolinbos

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?

nam-co avatar Sep 29 '21 15:09 nam-co

Just got across this, ended up using a method similar to @SebastianSchoeps, however, just replaced references to this.wireComponent to this.$wire.

iksaku avatar Oct 21 '21 19:10 iksaku