diff --git a/package-lock.json b/package-lock.json index c8959b798..0485659be 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "react-plotly.js-editor", - "version": "0.3.0", + "version": "0.4.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/src/components/fields/MultiFormatTextEditor.js b/src/components/fields/MultiFormatTextEditor.js index c1be572d8..841250f40 100644 --- a/src/components/fields/MultiFormatTextEditor.js +++ b/src/components/fields/MultiFormatTextEditor.js @@ -6,12 +6,15 @@ import {connectToContainer} from 'lib'; export class UnconnectedMultiFormatTextEditor extends Component { render() { + const {multiValued, container, attr} = this.props; let fullValue = this.props.fullValue; + let placeholder; - if (this.props.multiValued) { + if (multiValued || (!container[attr] && fullValue)) { placeholder = fullValue; fullValue = ''; } + return (