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.08k stars 83 forks source link

Vue-Selecto container not work #64

Open tinahung126 opened 2 years ago

tinahung126 commented 2 years ago

Environments

Description

Vue can't control the selecto area, I use rootContainer/ dragContainer / container but can't limit the selecto area, I can still start select from anywhere, but I want can just start select from specific element. I test all the framework demo, just Vue version has this situation.

截圖 2022-01-19 上午10 08 34
christophermaloney commented 2 years ago

Also doesn't set the container correctly in the react version

acabreragnz commented 2 years ago

@tinahung126 it is a bug in version 1.13.1

In the meantime, you could tackle this by downgrading the version to 1.13.0

Working example: https://codesandbox.io/s/amazing-mopsa-2x6hy5?file=/src/App.vue

daybrush commented 2 years ago

@acabreragnz @tinahung126 @christophermaloney

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

acabreragnz commented 2 years ago

@daybrush it works now, thank you! :raised_hands:

abiari commented 2 years ago

the issue is still up, i'm on vue3-selecto 1.2.2, and I still can't set "container" to a different value, it always defaults to body even if i set it to a different value, @daybrush any help would be appreciated

daybrush commented 2 years ago

@Gruxme @acabreragnz @tinahung126

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