From 6e78cec2920a43caa8fbbd9d56f7a59a157a93a2 Mon Sep 17 00:00:00 2001 From: ryedin Date: Tue, 18 Oct 2016 10:22:14 -0500 Subject: [PATCH] render by reference to enable delayed dom injection --- src/ace.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ace.jsx b/src/ace.jsx index 1bcd2fcc..42ca7fb7 100644 --- a/src/ace.jsx +++ b/src/ace.jsx @@ -53,7 +53,7 @@ export default class ReactAce extends Component { markers, } = this.props; - this.editor = ace.edit(name); + this.editor = ace.edit(this.refs.editor); if (onBeforeLoad) { onBeforeLoad(ace);