fabricjs / fabric.js

Javascript Canvas Library, SVG-to-Canvas (& canvas-to-SVG) Parser
http://fabricjs.com
Other
28.73k stars 3.49k forks source link

[Bug]: Group set interactive & subTargetCheck not working properly #10144

Open hamzawain7 opened 6 days ago

hamzawain7 commented 6 days ago

CheckList

Version

6.0.2

In What environments are you experiencing the problem?

Chrome

Node Version (if applicable)

None

Link To Reproduction

https://jsfiddle.net/hamzawain7/uw94h1dy/20/

Steps To Reproduce

  1. Click the enable interactivity button in above js fiddle
  2. Select the group
  3. Group gets selected rather then the child item

Expected Behavior

After clicking the enable interactivity button child textbox should be selected on click

Actual Behavior

After clicking the enable interactivity button, the group gets selected on the first click. On second click the child textbox gets selected. From this ownards toggling the interactivity of group resutls in the expected behaviour.

ScreenRecording2024-09-11at9 43 14PM-ezgif com-video-to-gif-converter

Error Message & Stack Trace

No response

hamzawain7 commented 5 days ago

cc @ShaMan123

ShaMan123 commented 5 days ago

I left fabric @hamzawain7

asturur commented 5 days ago

Seems a bug to me, the code is simple and is not behaving as i would expect.