Skip to content

Commit ea5e8d6

Browse files
authored
Merge pull request #79 from wxiaoguang/main
Use "nearest" behavior for scrollIntoView
2 parents 8f17b1e + 702bd7a commit ea5e8d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default class Combobox {
2525
this.list = list
2626
this.tabInsertsSuggestions = tabInsertsSuggestions ?? true
2727
this.defaultFirstOption = defaultFirstOption ?? false
28-
this.scrollIntoViewOptions = scrollIntoViewOptions
28+
this.scrollIntoViewOptions = scrollIntoViewOptions ?? {block: 'nearest', inline: 'nearest'}
2929

3030
this.isComposing = false
3131

0 commit comments

Comments
 (0)