Disable group selection in Fabric.js

fabricjs, javascript

Solution

you can easily achieve this with

  canvas.selection = false; // disable group selection

if you want it on individual object

  rect.set('selectable', false); // make object unselectable

Problem

How to disable group selection in Fabric.js and leave single objects selectable one at a time? With group selection I mean selecting multiple objects using eg. SHIFT+Click.

Original source