fix: prevent horizontal scroll when

pull/5758/head
KumJungMin 2024-05-18 19:54:59 +09:00
parent c543d2a84e
commit e156b25d7c
1 changed files with 1 additions and 1 deletions

View File

@ -860,7 +860,7 @@ export default {
const element = DomHandler.findSingle(this.list, `li[id="${id}"]`);
if (element) {
element.scrollIntoView && element.scrollIntoView({ block: 'nearest', inline: 'start' });
element.scrollIntoView && element.scrollIntoView({ block: 'nearest' });
} else if (!this.virtualScrollerDisabled) {
this.virtualScroller && this.virtualScroller.scrollToIndex(index !== -1 ? index : this.focusedOptionIndex);
}