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