Giter Site home page Giter Site logo

Alpine v3 about laravel-blade-sortable HOT 13 OPEN

asantibanez avatar asantibanez commented on July 30, 2024 1
Alpine v3

from laravel-blade-sortable.

Comments (13)

diazsasak avatar diazsasak commented on July 30, 2024 3

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]

from laravel-blade-sortable.

SebastianSchoeps avatar SebastianSchoeps commented on July 30, 2024 3

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

from laravel-blade-sortable.

iksaku avatar iksaku commented on July 30, 2024 2

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

from laravel-blade-sortable.

ehsantalkhouncheh avatar ehsantalkhouncheh commented on July 30, 2024

Any news about alpinejs v3?

from laravel-blade-sortable.

laraben avatar laraben commented on July 30, 2024

Some ETA when Alpine v3 will work?

from laravel-blade-sortable.

SebastianSchoeps avatar SebastianSchoeps commented on July 30, 2024

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

from laravel-blade-sortable.

Hesesses avatar Hesesses commented on July 30, 2024

Any updates on this?

from laravel-blade-sortable.

brocorp-dev avatar brocorp-dev commented on July 30, 2024

Hi,

We encountered same issue with Alpine V3.

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

from laravel-blade-sortable.

nam-co avatar nam-co commented on July 30, 2024

Same problem with alpine V3 "__v_raw"

from laravel-blade-sortable.

nam-co avatar nam-co commented on July 30, 2024

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

from laravel-blade-sortable.

nam-co avatar nam-co commented on July 30, 2024

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

from laravel-blade-sortable.

rolinbos avatar rolinbos commented on July 30, 2024

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

from laravel-blade-sortable.

nam-co avatar nam-co commented on July 30, 2024

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?

from laravel-blade-sortable.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.