selecto
selecto copied to clipboard
How to disable drag events only while keeping click events?
Environments
- Framework name: react
- Framework version:
- Component name:
- Component version:
- Testable Address(optional):
Description
I'm trying to use Selecto in my project and I'd like to disable drag events while keeping click events active. If I use "dragCondition" to return false, the whole Selecto has been disabled.
@Larthas
Try calling the e.preventDrag()
function in the onDragStart
event.