selecto
selecto copied to clipboard
How to disable selecto ?
Environments
- Framework name: react
- Framework version: latest
- Component name:
- Component version:
- Testable Address(optional):
Description
Is there has a prop like disable
to disable Selecto
?
except
{
disabled ? <Selecto /> : null
}
if you disable Selecto, should set dragCondition's return value to false
<Selecto dragCondition={e => false} />
Hello,
I have a related question about that, in my case, I need to disable only the drag selection feature and keep the click selection recognition when the "shift" is held.
Sample:
https://codesandbox.io/s/great-archimedes-ylet5?file=/src/App.tsx
PS: watch the comment on line 102
I also wish to disable drag select but keep click select. is there a way to do this ? daybrush's solution disables it all together
EDIT: simple solution using e.preventDrag()
here