diff options
author | bob <bcz@cs.brown.edu> | 2019-06-20 17:11:29 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-06-20 17:11:29 -0400 |
commit | 46a2a9e1f10b63feeb21a1e186daeaef2ccbcda4 (patch) | |
tree | b0e8ebeff84345794a0056f94057d2aa48f0f133 /src/client/views/EditableView.tsx | |
parent | a39b2854b848006c19460685d7bf4005a9f650ae (diff) | |
parent | a5dc0e04add05f2f5bf1e17f1ac0a5e0aba1ea41 (diff) |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
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 0f6281b5c..97a2d19dd 100644 --- a/src/client/views/EditableView.tsx +++ b/src/client/views/EditableView.tsx @@ -72,10 +72,14 @@ export class EditableView extends React.Component<EditableProps> { e.stopPropagation(); } + stopPropagation(e: React.SyntheticEvent) { + e.stopPropagation(); + } + render() { if (this._editing) { return <input className="editableView-input" defaultValue={this.props.GetValue()} onKeyDown={this.onKeyDown} autoFocus - onBlur={action(() => this._editing = false)} + onBlur={action(() => this._editing = false)} onPointerDown={this.stopPropagation} onClick={this.stopPropagation} onPointerUp={this.stopPropagation} style={{ display: this.props.display }} />; } else { return ( |