We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f943ae8 commit ade3679Copy full SHA for ade3679
1 file changed
src/components/fields/TextEditor.js
@@ -2,6 +2,7 @@ import Field from './Field';
2
import React, {Component} from 'react';
3
import PropTypes from 'prop-types';
4
import {connectToContainer} from 'lib';
5
+import nestedProperty from 'plotly.js/src/lib/nested_property';
6
import LaTeX from '../widgets/text_editors/LaTeX';
7
import RichText from '../widgets/text_editors/RichText';
8
import MultiFormat from '../widgets/text_editors/MultiFormat';
@@ -24,7 +25,7 @@ class UnconnectedTextEditor extends Component {
24
25
let fullValue = this.props.fullValue;
26
27
let placeholder;
- if (multiValued || (fullValue && (!container || !container[attr]))) {
28
+ if (multiValued || (fullValue && (!container || !nestedProperty(container, attr)))) {
29
placeholder = fullValue;
30
fullValue = '';
31
}
0 commit comments