Skip to content

Commit

Permalink
fix arrow for context 🤦
Browse files Browse the repository at this point in the history
  • Loading branch information
brianzinn committed Nov 30, 2021
1 parent 4f94526 commit 07c7e04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Engine.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class ReactBabylonjsEngine extends React.Component<EngineProps, EngineState> {
this.setState({ canRender: true });
}

onCanvasRef(c: HTMLCanvasElement) {
onCanvasRef = (c: HTMLCanvasElement) => {
// We are not using the react.createPortal(...), as it adds a ReactDOM dependency, but also
// it was not flowing the context through to HOCs properly.
if (this.props.portalCanvas) {
Expand Down

0 comments on commit 07c7e04

Please sign in to comment.