aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client/views/EditableView.tsx8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/client/views/EditableView.tsx b/src/client/views/EditableView.tsx
index 73ac1b032..c6666d79d 100644
--- a/src/client/views/EditableView.tsx
+++ b/src/client/views/EditableView.tsx
@@ -248,7 +248,6 @@ export class EditableView extends ObservableReactComponent<EditableProps> {
autoFocus={true}
onChange={this.onChange}
onKeyDown={this.onKeyDown}
- onKeyPress={this.stopPropagation}
onPointerDown={this.stopPropagation}
onClick={this.stopPropagation}
onPointerUp={this.stopPropagation}
@@ -264,7 +263,6 @@ export class EditableView extends ObservableReactComponent<EditableProps> {
autoFocus={true}
onChange={this.onChange}
onKeyDown={this.onKeyDown}
- onKeyPress={this.stopPropagation}
onPointerDown={this.stopPropagation}
onClick={this.stopPropagation}
onPointerUp={this.stopPropagation}
@@ -299,15 +297,13 @@ export class EditableView extends ObservableReactComponent<EditableProps> {
fontStyle: this._props.fontStyle,
fontSize: this._props.fontSize,
}}
- //onPointerDown={this.stopPropagation}
- onClick={this.onClick}
- placeholder={this._props.placeholder}>
+ onClick={this.onClick}>
<span
style={{
fontStyle: this._props.fontStyle,
fontSize: this._props.fontSize,
}}>
- {this._props.fieldContents ? <FieldView {...this._props.fieldContents} /> : this.props.contents ? this._props.contents?.valueOf() : this._props.placeholder?.valueOf()}
+ {this._props.fieldContents ? <FieldView {...this._props.fieldContents} /> : this.props.contents ? this._props.contents?.valueOf() : ''}
</span>
</div>
);