diff options
author | bob <bcz@cs.brown.edu> | 2019-05-01 11:02:53 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-05-01 11:02:53 -0400 |
commit | d6ecb1cabeb34b5e55bc107f308f63071e4c40f7 (patch) | |
tree | 51a70deaab5d300028839f5abc4f1c04557accd3 | |
parent | bb86f44b561d8097c9059936d1d64d5d5eef72aa (diff) |
fixed nested textbox selection
-rw-r--r-- | src/client/views/nodes/FormattedTextBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/FormattedTextBox.tsx b/src/client/views/nodes/FormattedTextBox.tsx index 12b7b5abf..7f269a505 100644 --- a/src/client/views/nodes/FormattedTextBox.tsx +++ b/src/client/views/nodes/FormattedTextBox.tsx @@ -238,7 +238,7 @@ export class FormattedTextBox extends DocComponent<(FieldViewProps & FormattedTe this._proseRef.current!.focus(); } onMouseDown = (e: React.MouseEvent): void => { - if (!this.props.isSelected() && this.props.active()) { // preventing default allows the onClick to be generated instead of being swallowed by the text box itself + if (!this.props.isSelected()) { // preventing default allows the onClick to be generated instead of being swallowed by the text box itself e.preventDefault(); // bcz: this would normally be in OnPointerDown - however, if done there, no mouse move events will be generated which makes transititioning to GoldenLayout's drag interactions impossible } } |