Open ozsirma opened 3 years ago
@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 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();
}}
Environments
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 ?