Currently, I'm working on fabricjs where I'm drawing a different shape. When I do so the shapes are drawn perfectly fine but when I switch to selection mode I'm not able to select the shape. But, when I draw a lot of shapes and select them all together, I'm able to select all of them and later I'm able to individually select shapes which weren't happening before.
the code that I referred to in order to make this progress
reference code: Fabric js : fabric js drawing mode and selection mode options
thanks :)
After you press on hand option you need to parse all the objects from canvas and call setCoords
function