mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
UX: scroll row to top of container in select-kit (#15230)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user