Skip to content

Commit

Permalink
Fix reference to canvas element in Stage function component
Browse files Browse the repository at this point in the history
  • Loading branch information
michalochman committed Jul 19, 2022
1 parent 3a9b71b commit 48a047d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Stage/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export default function createStageFunction() {

useImperativeHandle(ref, () => ({
_app: appRef,
_canvas: appRef,
_canvas: canvasRef,
props: props,
}));

Expand Down

0 comments on commit 48a047d

Please sign in to comment.