From ff02637d0ad23bec59e9de0faa5f6b1aebe1bbe3 Mon Sep 17 00:00:00 2001 From: Grigory Vodyanov Date: Mon, 16 Feb 2026 13:56:57 +0100 Subject: [PATCH] fix(NcAppNavigationItem): tabbing on editable items Signed-off-by: Grigory Vodyanov --- .../NcAppNavigationItem/NcAppNavigationItem.vue | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/components/NcAppNavigationItem/NcAppNavigationItem.vue b/src/components/NcAppNavigationItem/NcAppNavigationItem.vue index a32296104f..74a285ed23 100644 --- a/src/components/NcAppNavigationItem/NcAppNavigationItem.vue +++ b/src/components/NcAppNavigationItem/NcAppNavigationItem.vue @@ -791,16 +791,20 @@ export default { * @param {Event} e the keydown event */ handleTab(e) { - // If there is no actions menu, do nothing. - if (!this.$refs.actions) { + if (this.editingActive) { return } - if (this.focused) { + + const actionsContainer = this.$el?.querySelector('.app-navigation-entry__utils') + if (!actionsContainer) { + return + } + + const focusableElement = actionsContainer.querySelector('button') + if (this.focused && focusableElement) { e.preventDefault() - this.$refs.actions.$refs.triggerButton.$el.focus() + focusableElement.focus() this.focused = false - } else { - this.$refs.actions.$refs.triggerButton.$el.blur() } },