UX: scroll row to top of container in select-kit (#15230)
This commit is contained in:
parent
f799b8bfb1
commit
a144f49ec2
|
@ -714,7 +714,7 @@ export default Component.extend(
|
|||
rowContainer = this.element.querySelector(".select-kit-row.is-none");
|
||||
}
|
||||
|
||||
rowContainer && rowContainer.focus({ preventScroll });
|
||||
rowContainer?.focus({ preventScroll });
|
||||
},
|
||||
|
||||
_highlightLast() {
|
||||
|
@ -989,7 +989,7 @@ export default Component.extend(
|
|||
}
|
||||
|
||||
if (highlighted) {
|
||||
this._scrollToRow(highlighted);
|
||||
this._scrollToRow(highlighted, false);
|
||||
this.set("selectKit.highlighted", highlighted);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue