Skip to content

Commit 2a16839

Browse files
pshrmnCompuIves
authored andcommitted
Use ref on host component (codesandbox#1228)
1 parent 4de80fd commit 2a16839

File tree

1 file changed

+1
-1
lines changed
  • packages/app/src/app/pages/Sandbox/Editor/Content

1 file changed

+1
-1
lines changed

packages/app/src/app/pages/Sandbox/Editor/Content/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ class EditorPreview extends React.Component<Props, State> {
415415
display: 'flex',
416416
flexDirection: 'column',
417417
}}
418-
innerRef={node => {
418+
ref={node => {
419419
if (node) {
420420
this.contentNode = node;
421421
}

0 commit comments

Comments
 (0)