Mobius1 / Selectable

Touch enabled selectable plugin inspired by the jQuery UI widget.
MIT License
144 stars 21 forks source link

Single selection #71

Open effhAVE opened 10 months ago

effhAVE commented 10 months ago

Hi, first of all - great library!

In my scenario sometimes I need to select only one element - which makes lasso unnecessary. I was struggling to work around it with the options provided but looking at the source I realised I can pass lasso: false (despite what the docs say) as a prop which prevents it from rendering.

From what I see it works as expected (no lasso but elements can be selected by clicking) but I'm not sure if passing falsy values was intended - if so, maybe it should be mentioned in the docs?

Cheers!