Form repeat: Sortable not defined

Wappler 7.3.2
NodeJS

I have a project where this:

<div is="dmx-form-repeat" id="formRepeat1" dmx-bind:items="serverconnect_torneos.data.query" sortable="true">

Was working fine, but I think after upgrade:

sortable="true"

Results in:

BaseComponent.js:59 ReferenceError: Sortable is not defined
    at s.render (formRepeat.js:116:1)
    at s.constructor (BaseComponent.js:50:1)
    at s (api.js:5:1)
    at t.hasOwnProperty.t.constructor (api.js:47:1)
    at new s (api.js:5:1)
    at s.$createChild (BaseComponent.js:139:1)
    at s.<anonymous> (BaseComponent.js:271:1)
    at Object.walk (dom.js:186:1)
    at Object.walk (dom.js:191:1)
    at s.$parse (BaseComponent.js:239:1)

Not seeing that at my end, all working as expected.

Have you checked sortable.js has not accidentally been removed from the head section of the layout page.

1 Like

@Hyperbytes you're right:
This was missing on the layout page:

<script src="https://cdn.jsdelivr.net/npm/sortablejs@1/Sortable.min.js"></script>

Had to take it from another project
I never associated it with an extra js file

Thanks Brian!

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.