diff options
author | bobzel <zzzman@gmail.com> | 2020-07-07 10:01:33 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-07 10:01:33 -0400 |
commit | 06ef30846b8014d6701caa86b264612ceabc27d1 (patch) | |
tree | 69e1699c41688ffa984c3acc267f5ef2e77d62e2 /src/client/views/EditableView.tsx | |
parent | 0438137cd435c47ce334b15a4ad00cbd70d80662 (diff) | |
parent | 915f35e6d6c0b0f7bdb18c0c2a6aa88ee5df5eed (diff) |
Merge pull request #433 from browngraphicslab/anika_linking
Pull Request for Andy
Diffstat (limited to 'src/client/views/EditableView.tsx')
-rw-r--r-- | src/client/views/EditableView.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/client/views/EditableView.tsx b/src/client/views/EditableView.tsx index 628db366f..25a87ab56 100644 --- a/src/client/views/EditableView.tsx +++ b/src/client/views/EditableView.tsx @@ -194,7 +194,11 @@ export class EditableView extends React.Component<EditableProps> { ref={this._ref} style={{ display: this.props.display, minHeight: "20px", height: `${this.props.height ? this.props.height : "auto"}`, maxHeight: `${this.props.maxHeight}` }} onClick={this.onClick} placeholder={this.props.placeholder}> - <span style={{ fontStyle: this.props.fontStyle, fontSize: this.props.fontSize, color: this.props.contents ? "black" : "grey" }}>{this.props.contents ? this.props.contents?.valueOf() : this.props.placeholder?.valueOf()}</span> + <span style={{ + fontStyle: this.props.fontStyle, fontSize: this.props.fontSize, + color: this.props.contents ? this.props.color ? this.props.color : "black" : "grey" + }}> + {this.props.contents ? this.props.contents?.valueOf() : this.props.placeholder?.valueOf()}</span> </div> ); } |