diff --git a/app/components/SimpleEditor/ContainerEditor.js b/app/components/SimpleEditor/ContainerEditor.js index 1f80b3aae924254adbf664cc62f9ead8baa8319f..4afe7f30d8482c006b963b31bdb63391bddbf4ac 100644 --- a/app/components/SimpleEditor/ContainerEditor.js +++ b/app/components/SimpleEditor/ContainerEditor.js @@ -35,10 +35,11 @@ class ContainerEditor extends SubstanceContainerEditor { didMount () { super.didMount() - if (this.isEmpty() && this.props.containerId !== 'notes') this.createText() - - // TODO -- why this and not this.focus ? - this.el.focus() + if (this.isEmpty() && this.props.containerId !== 'notes'){ + this.createText() + // TODO -- why this and not this.focus ? + this.el.focus() + } if (this.isReadOnlyMode()) { this.editorSession.onUpdate('', this.disableToolbar, this)