Commit 9e5bc599 authored by Phil Hughes's avatar Phil Hughes

Fixed Web IDE row dropdowns scrolling list incorrectly

Closes #49892
parent d4eeee2a
...@@ -35,7 +35,9 @@ export default { ...@@ -35,7 +35,9 @@ export default {
watch: { watch: {
dropdownOpen() { dropdownOpen() {
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.dropdownMenu.scrollIntoView(); this.$refs.dropdownMenu.scrollIntoView({
block: 'nearest',
});
}); });
}, },
mouseOver() { mouseOver() {
......
...@@ -62,7 +62,9 @@ describe('new dropdown component', () => { ...@@ -62,7 +62,9 @@ describe('new dropdown component', () => {
vm.dropdownOpen = true; vm.dropdownOpen = true;
setTimeout(() => { setTimeout(() => {
expect(vm.$refs.dropdownMenu.scrollIntoView).toHaveBeenCalled(); expect(vm.$refs.dropdownMenu.scrollIntoView).toHaveBeenCalledWith({
block: 'nearest',
});
done(); done();
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment