haltu / muuri

Infinite responsive, sortable, filterable and draggable layouts
https://muuri.dev
MIT License
10.8k stars 643 forks source link

[Vue] Not working toggle dragEnabled option #468

Closed presetslrdev closed 3 years ago

presetslrdev commented 3 years ago

Hi, Demo on codesandbox.io

I used muuri with Vue.js.

And I can't control dragEnabled. If I install isDraggable true (line 31 on code), everything works, but it does not turn off draggable effect. If I install IsDraggable false (line 31 on code), it does not turn on draggable effect.

I override _settings.dragEnabled, but this does not affect the work in any way.

Any ideas?

niklasramo commented 3 years ago

Changing the dragEnabled setting value after instantiation won't work and is not supposed to work, yet. There is a method for updating the settings on the fly in the dev branch version, but that version is still in very much alpha stage so I don't recommend using it in production.