Skip to content

Commit

Permalink
Merge pull request #79 from wxiaoguang/main
Browse files Browse the repository at this point in the history
Use "nearest" behavior for scrollIntoView
  • Loading branch information
keithamus authored Dec 23, 2023
2 parents 8f17b1e + 702bd7a commit ea5e8d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ea5e8d6

Please sign in to comment.