From b39fbf03c24ebb38a6148f5828ff89d89030cac3 Mon Sep 17 00:00:00 2001 From: chris <kokosias@yahoo.gr> Date: Tue, 25 Apr 2017 16:21:09 +0300 Subject: [PATCH] fix --- app/components/SimpleEditor/ContainerEditor.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/components/SimpleEditor/ContainerEditor.js b/app/components/SimpleEditor/ContainerEditor.js index 1f80b3a..4afe7f3 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) -- GitLab