react-selectable
react-selectable copied to clipboard
A way to know which components are pre-selected
Question, is there an event or a way to know which components are being pre-selected during the drag and select process?
You mean like the way desktop apps work, where the items take on a new UI state as the box is being defined? No, because I assume it's a massive performance hit, however, it may be a really easy change.
If you're keen to have a play with it, I think all you'd have to do is add this.selectElements(e) (as seen in the _mouseup function) to the _openSelector function.
Have a play with that, and see how it works for you. If it ends up working out without any major tradeoffs, I'd welcome a PR that permitted that behaviour as a prop on the group.