Merge pull request #5758 from KumJungMin/fix/issue-4488
fix(Dropdown): prevent horizontal scroll, when dropdown item selectingpull/5863/head
commit
6c05222fd4
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue