daybrush / selecto

Selecto.js is a component that allows you to select elements in the drag area using the mouse or touch.
https://daybrush.com/selecto
MIT License
2.04k stars 82 forks source link

vue-selecto $refs componets mothed is not work #79

Open mm58508536 opened 2 years ago

mm58508536 commented 2 years ago

Environments

Description

it return undefined when I use "this.$refs.selecto.xxxxx" ,after review code i found: image it need "return" the function result

by the way , when i use 'setSelectedTargets' on event 'dragStart' but it can't change the 'e.currentTarget.selectedTargets' on 'selectEnd' event

daybrush commented 2 years ago

Even if the selected targets are set, the targets may be different at the time of selectEnd. setSelectedTargets are the results of select, selectEnd.

daybrush commented 2 years ago

@mm58508536

selecto's new version is released.

I fixed vue methods. Check it again.

mm58508536 commented 2 years ago

the same problem in vue-moveable 2.0

daybrush commented 2 years ago

@mm58508536

okay. i'll fix it too. Thank you :)

daybrush commented 2 years ago

@mm58508536

selecto's new version is released. Check it again.

xuna2278 commented 2 years ago

vue-selecto 1.17.0 Unable to get selectedTargets after use setSelectedTargets