From 702bd7a0a9a6708d24abe8ef26618538c07671cb Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Sat, 23 Dec 2023 23:31:18 +0800 Subject: [PATCH] Update index.ts --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 74b7f10..6a60a10 100644 --- a/src/index.ts +++ b/src/index.ts @@ -25,7 +25,7 @@ export default class Combobox { this.list = list this.tabInsertsSuggestions = tabInsertsSuggestions ?? true this.defaultFirstOption = defaultFirstOption ?? false - this.scrollIntoViewOptions = scrollIntoViewOptions + this.scrollIntoViewOptions = scrollIntoViewOptions ?? {block: 'nearest', inline: 'nearest'} this.isComposing = false