Open mm58508536 opened 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.
@mm58508536
selecto
1.16.0react-selecto
1.16.0preact-selecto
1.16.0ngx-selecto
1.16.0svelte-selecto
1.16.0vue-selecto
1.16.0vue3-selecto
1.16.0lit-selecto
1.16.0selecto's new version is released.
I fixed vue methods. Check it again.
the same problem in vue-moveable 2.0
@mm58508536
okay. i'll fix it too. Thank you :)
selecto
1.17.0react-selecto
1.17.0preact-selecto
1.17.0ngx-selecto
1.17.0svelte-selecto
1.17.0vue-selecto
1.17.0vue3-selecto
1.17.0lit-selecto
1.17.0@mm58508536
selecto's new version is released. Check it again.
vue-selecto 1.17.0 Unable to get selectedTargets after use setSelectedTargets
Environments
Description
it return undefined when I use "this.$refs.selecto.xxxxx" ,after review code i found:
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