Fabric.js: setActiveObject is not working properly

Created on 29 Sep 2017  路  2Comments  路  Source: fabricjs/fabric.js

Version

2.0 beta 7

Test Case

https://jsfiddle.net/DerekLiang/dszj6fq8/ -- not working
same code, works in 1.7.19.

Steps to reproduce

click on the refresh button in the codepen

Expected Behavior

The object is selected.

Actual Behavior

The object is not selected.

Most helpful comment

As mentioned in #4145 , you need to call renderAll after setActiveObject.

All 2 comments

codepen do not work for me. they flash all the time. please make a fiddle.

As mentioned in #4145 , you need to call renderAll after setActiveObject.

Was this page helpful?
0 / 5 - 0 ratings