selecto icon indicating copy to clipboard operation
selecto copied to clipboard

How to disable selecto ?

Open GreatAuk opened this issue 3 years ago • 3 comments

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
}

GreatAuk avatar Jun 07 '21 06:06 GreatAuk

if you disable Selecto, should set dragCondition's return value to false

<Selecto dragCondition={e => false} />

daybrush avatar Jun 16 '21 18:06 daybrush

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

luiz504 avatar Oct 28 '21 19:10 luiz504

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

gabimor avatar Sep 11 '23 06:09 gabimor