selecto icon indicating copy to clipboard operation
selecto copied to clipboard

vue-selecto $refs componets mothed is not work

Open mm58508536 opened this issue 2 years ago • 6 comments

Environments

  • Framework name:vue
  • Framework version:2.6.14
  • Component name: vue-selecto
  • Component version:1.15.1
  • Testable Address(optional):

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

mm58508536 avatar May 06 '22 12:05 mm58508536

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 avatar May 07 '22 00:05 daybrush

@mm58508536

  • selecto 1.16.0
  • react-selecto 1.16.0
  • preact-selecto 1.16.0
  • ngx-selecto 1.16.0
  • svelte-selecto 1.16.0
  • vue-selecto 1.16.0
  • vue3-selecto 1.16.0
  • lit-selecto 1.16.0

selecto's new version is released.

I fixed vue methods. Check it again.

daybrush avatar May 07 '22 01:05 daybrush

the same problem in vue-moveable 2.0

mm58508536 avatar May 10 '22 08:05 mm58508536

@mm58508536

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

daybrush avatar May 10 '22 13:05 daybrush

  • selecto 1.17.0
  • react-selecto 1.17.0
  • preact-selecto 1.17.0
  • ngx-selecto 1.17.0
  • svelte-selecto 1.17.0
  • vue-selecto 1.17.0
  • vue3-selecto 1.17.0
  • lit-selecto 1.17.0

@mm58508536

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

daybrush avatar Jul 03 '22 19:07 daybrush

vue-selecto 1.17.0 Unable to get selectedTargets after use setSelectedTargets

xuna2278 avatar Jul 12 '22 03:07 xuna2278