diff options
author | bobzel <zzzman@gmail.com> | 2024-01-25 13:42:29 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2024-01-25 13:42:29 -0500 |
commit | f57f7d217441914ed943cba54c0c5445ba79ffb1 (patch) | |
tree | 46e85450734097465a19b30d92f458e1a88c85a9 /src | |
parent | fb4bacef3ed819c8186162858be2cc4ce5f21377 (diff) |
fixed warnings in editable view
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/EditableView.tsx | 8 |
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> ); |