diff options
| author | andrewdkim <adkim414@gmail.com> | 2019-07-22 15:47:37 -0400 |
|---|---|---|
| committer | andrewdkim <adkim414@gmail.com> | 2019-07-22 15:47:37 -0400 |
| commit | 5c0defdb56b4c31bb4ab2670990a51b6f05d1a5e (patch) | |
| tree | 85f608ac6c5ce277f3ff3fa261ec8bb9fb22589d /src/client/views/nodes/FormattedTextBox.tsx | |
| parent | 9e093b9652750cfd102864c551ed8564a04df92e (diff) | |
| parent | 291ae12b0c4587c4f656caac6d402413cc8ec76d (diff) | |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into animationtimeline
Diffstat (limited to 'src/client/views/nodes/FormattedTextBox.tsx')
| -rw-r--r-- | src/client/views/nodes/FormattedTextBox.tsx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/client/views/nodes/FormattedTextBox.tsx b/src/client/views/nodes/FormattedTextBox.tsx index 99801ecff..0a79677e2 100644 --- a/src/client/views/nodes/FormattedTextBox.tsx +++ b/src/client/views/nodes/FormattedTextBox.tsx @@ -233,10 +233,8 @@ export class FormattedTextBox extends DocComponent<(FieldViewProps & FormattedTe return field ? field.Data : `{"doc":{"type":"doc","content":[]},"selection":{"type":"text","anchor":0,"head":0}}`; }, field2 => { - if (StrCast(this.props.Document.layout).indexOf("\"" + this.props.fieldKey + "\"") !== -1) { // bcz: UGH! why is this needed... something is happening out of order. test with making a collection, then adding a text note and converting that to a template field. - this._editorView && !this._applyingChange && - this._editorView.updateState(EditorState.fromJSON(config, JSON.parse(field2))); - } + this._editorView && !this._applyingChange && + this._editorView.updateState(EditorState.fromJSON(config, JSON.parse(field2))); } ); |
