I may be late answering this, but in fabricjs (1.4.3)
you can use the following to deselect all selected objects on the canvas.
canvas.deactivateAll().renderAll();
I am using this before creating a image of that canvas. Hope it helps someone.
for fabricjs 4.0 you can use:
canvas.discardActiveObject().renderAll();