diff --git a/src/canvas/__tests__/eventData.test.ts b/src/canvas/__tests__/eventData.test.ts index a2fae8bb48e..5dce353e5b2 100644 --- a/src/canvas/__tests__/eventData.test.ts +++ b/src/canvas/__tests__/eventData.test.ts @@ -368,6 +368,15 @@ describe('Event targets', () => { target: other, targets: [other], }); + + expect( + canvas.findTargets(canvas.getActiveObjects(), new Point(), { + searchStrategy: 'search-all', + }) + ).toEqual({ + target: other, + targets: [other, subTarget, target], + }); } );