From 2e1f06927af370efa60e8aba3bf3337b311243ce Mon Sep 17 00:00:00 2001 From: Wolfgang Date: Sat, 16 Nov 2024 12:32:12 +0100 Subject: [PATCH] fix: TypeError: this.$refs.actions.$refs.menuButton is undefined Signed-off-by: Wolfgang --- src/components/NcAppNavigationItem/NcAppNavigationItem.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/NcAppNavigationItem/NcAppNavigationItem.vue b/src/components/NcAppNavigationItem/NcAppNavigationItem.vue index 731fa96fe3..7ffc446366 100644 --- a/src/components/NcAppNavigationItem/NcAppNavigationItem.vue +++ b/src/components/NcAppNavigationItem/NcAppNavigationItem.vue @@ -753,10 +753,10 @@ export default { } if (this.focused) { e.preventDefault() - this.$refs.actions.$refs.menuButton.$el.focus() + this.$refs.actions.$refs.triggerButton.$el.focus() this.focused = false } else { - this.$refs.actions.$refs.menuButton.$el.blur() + this.$refs.actions.$refs.triggerButton.$el.blur() } },