Skip to content

Commit

Permalink
Merge pull request #5758 from KumJungMin/fix/issue-4488
Browse files Browse the repository at this point in the history
fix(Dropdown): prevent horizontal scroll, when dropdown item selecting
  • Loading branch information
tugcekucukoglu authored Jun 10, 2024
2 parents 38a334a + e156b25 commit 6c05222
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/dropdown/Dropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,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);
}
Expand Down

0 comments on commit 6c05222

Please sign in to comment.