diff options
| author | bobzel <zzzman@gmail.com> | 2023-09-19 18:20:29 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2023-09-19 18:20:29 -0400 |
| commit | b98fad407e2214512d526dcff3812879ad9b4035 (patch) | |
| tree | 8c32c67101644ee1f7fd6aa5856878d0be56a313 /src/client/views/InkingStroke.tsx | |
| parent | 4bf7ab5246b9af2199458692cf020b169aab7bf3 (diff) | |
fixed closing a text box while typing in it.
Diffstat (limited to 'src/client/views/InkingStroke.tsx')
| -rw-r--r-- | src/client/views/InkingStroke.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/InkingStroke.tsx b/src/client/views/InkingStroke.tsx index 3b9edbc56..f63a27426 100644 --- a/src/client/views/InkingStroke.tsx +++ b/src/client/views/InkingStroke.tsx @@ -83,7 +83,7 @@ export class InkingStroke extends ViewBoxBaseComponent<FieldViewProps>() { getAnchor = (addAsAnnotation: boolean, pinProps?: PinProps) => { const subAnchor = this._subContentView?.getAnchor?.(addAsAnnotation); - if (subAnchor !== this.rootDoc) return subAnchor; + if (subAnchor !== this.rootDoc && subAnchor) return subAnchor; if (!addAsAnnotation && !pinProps) return this.rootDoc; |
