selecto
selecto copied to clipboard
Compatibility about windowing technique
Environments
- Framework name: React
- Framework version: v16
- Component name: Selecto
- Component version: Latest
- Testable Address(optional):
Description
Firstly, thank you for this library. I am using react-window. Selecto runs querySelectorAll method for selectableTargets only during onDragStart. For windowing, is it possible re-find selectableTargets during onDrag ? Could a more logical piece of code be written for this use ?
@ozsirma
Let me investigate. I'll probably make it possible through a method.
Is there any progress on the feature ?
@ozsirma
I couldn't manage because I was driven by a schedule. Now start working.
@ozsirma
- selecto 1.7.2
- react-selecto 1.7.2
- preact-selecto 1.6.2
- ngx-selecto 1.7.2
- lit-selecto 1.7.2
- vue-selecto 1.7.2
- svelte-selecto 1.7.2
selecto new version is released. Check it again. Use findSelectableTargets method
Hi @daybrush findSelectableTargets is called in onDragStart. Could there be a mistake here ?
@ozsirma
you can use findSelectableTargets in onDrag
@ozsirma
you can use findSelectableTargets in onDrag
How I can use findSelectableTargets during in onDrag for react-selecto ? Can you give me an example ?
@ozsirma I am also interested in using react-selecto with react window or another windowing technique. Did you find a solution for this?
@mcunningham I could not find any technique. As a workaround, after onDragEnd I calculate the unselected fields and mark them as selected.
@ozsirma @mcunningham
onDrag={(e) => {
// re find selectable targets during dragging.
selecto.findSelectableTargets();
}}