aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/EditableView.tsx
diff options
context:
space:
mode:
authorandy temp <andytemp@Kates-MBP.fios-router.home>2020-07-22 22:39:44 -0400
committerandy temp <andytemp@Kates-MBP.fios-router.home>2020-07-22 22:39:44 -0400
commitd4ff3975ee3b72a7869535bf8d9fc78039203aed (patch)
tree26012f78d9de67d2c21777e530020a1a4e39928b /src/client/views/EditableView.tsx
parentfd741cddf64fe1b068b7a1de5bc3840798afe75d (diff)
search
Diffstat (limited to 'src/client/views/EditableView.tsx')
-rw-r--r--src/client/views/EditableView.tsx5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/client/views/EditableView.tsx b/src/client/views/EditableView.tsx
index 4c2d2f0a9..b78ed6fee 100644
--- a/src/client/views/EditableView.tsx
+++ b/src/client/views/EditableView.tsx
@@ -195,15 +195,13 @@ export class EditableView extends React.Component<EditableProps> {
if (this.props.positions!==undefined){
let positions = this.props.positions;
let length = this.props.search!.length;
- console.log(contents);
- console.log(this.props.contents?.valueOf());
+
// contents = String(this.props.contents.valueOf());
results.push(<span style={{ fontStyle: this.props.fontStyle, fontSize: this.props.fontSize, color: this.props.contents ? "black" : "grey" }}>{contents ? contents.slice(0, this.props.positions![0]) : this.props.placeholder?.valueOf()}</span>);
positions.forEach((num, cur) => {
results.push(<span style={{ backgroundColor: "#FFFF00", fontStyle: this.props.fontStyle, fontSize: this.props.fontSize, color: this.props.contents ? "black" : "grey" }}>{contents ? contents.slice(num, num + length) : this.props.placeholder?.valueOf()}</span>);
let end = 0;
- console.log
cur === positions.length-1? end = contents.length: end = positions[cur + 1];
results.push(<span style={{ fontStyle: this.props.fontStyle, fontSize: this.props.fontSize, color: this.props.contents ? "black" : "grey" }}>{contents ? contents.slice(num + length, end) : this.props.placeholder?.valueOf()}</span>);
}
@@ -217,7 +215,6 @@ else{
}
render() {
- console.log(this.props.highlight === undefined);
if (this._editing && this.props.GetValue() !== undefined) {
return this.props.sizeToContent ?
<div style={{ display: "grid", minWidth: 100 }}>