From e156b25d7c70d124753a73b05eb764f027636b06 Mon Sep 17 00:00:00 2001 From: KumJungMin Date: Sat, 18 May 2024 19:54:59 +0900 Subject: [PATCH] fix: prevent horizontal scroll when --- components/lib/dropdown/Dropdown.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lib/dropdown/Dropdown.vue b/components/lib/dropdown/Dropdown.vue index 462b990f1..dbf8f05b7 100755 --- a/components/lib/dropdown/Dropdown.vue +++ b/components/lib/dropdown/Dropdown.vue @@ -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); }