diff options
Diffstat (limited to 'packages/frontend/src/utility/autocomplete.ts')
| -rw-r--r-- | packages/frontend/src/utility/autocomplete.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/frontend/src/utility/autocomplete.ts b/packages/frontend/src/utility/autocomplete.ts index c0b1865617..4eb1e29d07 100644 --- a/packages/frontend/src/utility/autocomplete.ts +++ b/packages/frontend/src/utility/autocomplete.ts @@ -194,7 +194,7 @@ export class Autocomplete { this.currentType = type; //#region サジェストを表示すべき位置を計算 - const caretPosition = getCaretCoordinates(this.textarea, this.textarea.selectionStart); + const caretPosition = getCaretCoordinates(this.textarea, this.textarea.selectionStart ?? 0); const rect = this.textarea.getBoundingClientRect(); |