Skip to content

Commit

Permalink
Refactor #3125, #3100, #3020
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Oct 20, 2022
1 parent 0e44c5c commit 44ae64b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/megamenu/MegaMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ export default {
},
scrollInView(index = -1) {
const id = index !== -1 ? `${this.id}_${index}` : this.focusedItemId;
const element = DomHandler.findSingle(this.list, `li[id="${id}"]`);
const element = DomHandler.findSingle(this.menubar, `li[id="${id}"]`);
if (element) {
element.scrollIntoView && element.scrollIntoView({ block: 'nearest', inline: 'start' });
Expand Down
2 changes: 1 addition & 1 deletion src/components/menubar/Menubar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ export default {
},
scrollInView(index = -1) {
const id = index !== -1 ? `${this.id}_${index}` : this.focusedItemId;
const element = DomHandler.findSingle(this.list, `li[id="${id}"]`);
const element = DomHandler.findSingle(this.menubar, `li[id="${id}"]`);
if (element) {
element.scrollIntoView && element.scrollIntoView({ block: 'nearest', inline: 'start' });
Expand Down
2 changes: 1 addition & 1 deletion src/components/tieredmenu/TieredMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ export default {
},
scrollInView(index = -1) {
const id = index !== -1 ? `${this.id}_${index}` : this.focusedItemId;
const element = DomHandler.findSingle(this.list, `li[id="${id}"]`);
const element = DomHandler.findSingle(this.menubar, `li[id="${id}"]`);
if (element) {
element.scrollIntoView && element.scrollIntoView({ block: 'nearest', inline: 'start' });
Expand Down

0 comments on commit 44ae64b

Please sign in to comment.