diff options
author | bobzel <zzzman@gmail.com> | 2022-10-13 10:39:33 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2022-10-13 10:39:33 -0400 |
commit | dd5cfe5302279d708bd8fbc7b9cad7ea082758c4 (patch) | |
tree | 45fb46e22b6a20a46e98affa9e1f113e1736b27a /src/client/views/nodes/formattedText/DashDocView.tsx | |
parent | 0b32679cba4cbfd97845b301266be25d1e3987bd (diff) |
some basic error checking. avoid querying background for non-toggle buttons
Diffstat (limited to 'src/client/views/nodes/formattedText/DashDocView.tsx')
-rw-r--r-- | src/client/views/nodes/formattedText/DashDocView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/formattedText/DashDocView.tsx b/src/client/views/nodes/formattedText/DashDocView.tsx index 73a711b9d..5f576be41 100644 --- a/src/client/views/nodes/formattedText/DashDocView.tsx +++ b/src/client/views/nodes/formattedText/DashDocView.tsx @@ -149,7 +149,7 @@ export class DashDocViewInternal extends React.Component<IDashDocViewInternal> { const { scale, translateX, translateY } = Utils.GetScreenTransform(this._spanRef.current); return new Transform(-translateX, -translateY, 1).scale(1 / scale); }; - outerFocus = (target: Doc) => this._textBox.props.focus(this._textBox.props.Document); // ideally, this would scroll to show the focus target + outerFocus = (target: Doc) => this._textBox.props.focus(this._textBox.props.Document, {}); // ideally, this would scroll to show the focus target onKeyDown = (e: any) => { e.stopPropagation(); |