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

Alpine v3 #9

Open
MariosMaggot opened this issue Jun 22, 2021 · 13 comments
Open

Alpine v3 #9

MariosMaggot opened this issue Jun 22, 2021 · 13 comments

Comments

@MariosMaggot
Copy link

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

@diazsasak
Copy link

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]

@ehsantalkhouncheh
Copy link

Any news about alpinejs v3?

@laraben
Copy link

laraben commented Aug 12, 2021

Some ETA when Alpine v3 will work?

@SebastianSchoeps
Copy link

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

@SebastianSchoeps
Copy link

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

@Hesesses
Copy link

Any updates on this?

@brocorp-dev
Copy link

Hi,

We encountered same issue with Alpine V3.

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

@nam-co
Copy link

nam-co commented Aug 26, 2021

Same problem with alpine V3 "__v_raw"

@nam-co
Copy link

nam-co commented Aug 27, 2021

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

@nam-co
Copy link

nam-co commented Sep 20, 2021

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

@rolinbos
Copy link

@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.

@nam-co
Copy link

nam-co commented Sep 29, 2021

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?

@iksaku
Copy link

iksaku commented Oct 21, 2021

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

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

10 participants