From 12d1a17f4151a4f1c2a5a49287e65be7794a622c Mon Sep 17 00:00:00 2001 From: Geireann Lindfield Roberts <60007097+geireann@users.noreply.github.com> Date: Tue, 18 Jul 2023 01:06:08 -0400 Subject: fixed lightbox view --- src/client/views/EditableView.tsx | 40 +++++++++++++++------------------------ src/client/views/MainView.tsx | 2 +- 2 files changed, 16 insertions(+), 26 deletions(-) (limited to 'src') diff --git a/src/client/views/EditableView.tsx b/src/client/views/EditableView.tsx index 4deed5ed9..4a986cb54 100644 --- a/src/client/views/EditableView.tsx +++ b/src/client/views/EditableView.tsx @@ -232,32 +232,22 @@ export class EditableView extends React.Component { onChange: this.props.autosuggestProps.onChange, }} /> - ) : (this._inputref = r)} + style={{ display: this.props.display, overflow: 'auto', fontSize: this.props.fontSize, minWidth: 20, background: this.props.background }} + placeholder={this.props.placeholder} + onBlur={e => this.finalizeEdit(e.currentTarget.value, false, true, false)} + defaultValue={this.props.GetValue()} + autoFocus={true} + onChange={this.onChange} + onKeyDown={this.onKeyDown} + onKeyPress={this.stopPropagation} + onPointerDown={this.stopPropagation} + onClick={this.stopPropagation} + onPointerUp={this.stopPropagation} /> - // // (this._inputref = r)} - // // style={{ display: this.props.display, overflow: 'auto', fontSize: this.props.fontSize, minWidth: 20, background: this.props.background }} - // // placeholder={this.props.placeholder} - // // onBlur={e => this.finalizeEdit(e.currentTarget.value, false, true, false)} - // // defaultValue={this.props.GetValue()} - // // autoFocus={true} - // // onChange={this.onChange} - // // onKeyDown={this.onKeyDown} - // // onKeyPress={this.stopPropagation} - // // onPointerDown={this.stopPropagation} - // // onClick={this.stopPropagation} - // // onPointerUp={this.stopPropagation} - // // /> // ) : ( //