Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with selection handle #56

Open
sureshkumar1987 opened this issue Feb 25, 2022 · 1 comment
Open

Issue with selection handle #56

sureshkumar1987 opened this issue Feb 25, 2022 · 1 comment

Comments

@sureshkumar1987
Copy link

Hi,
I get latest code from git repo and run on my local machine, at first time all works goods. But after draw object on canvas when I pressed undo/redo tool and goes for selecting object then selection handle not showing, but I can move object

Tool-demo1
Tool-demo2

@zrisha
Copy link

zrisha commented Jun 22, 2023

From what I could tell, this issue stems from a few properties related to controls customization of fabric.js. hasControls and hasBorders is being set on these objects as false once they are added back into the canvas from undo/redo.

A somewhat hacky fix is setting these properties to true during one of the event handlers, such as object:added. Just make sure the target's isControlPoint property is false.

The line shape has its own custom controls which also have issues with selection (another related issue with different means of addressing).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants