File tree Expand file tree Collapse file tree
src/components/NcAppNavigationItem Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -791,16 +791,20 @@ export default {
791791 * @param {Event} e the keydown event
792792 */
793793 handleTab (e ) {
794- // If there is no actions menu, do nothing.
795- if (! this .$refs .actions ) {
794+ if (this .editingActive ) {
796795 return
797796 }
798- if (this .focused ) {
797+
798+ const actionsContainer = this .$el ? .querySelector (' .app-navigation-entry__utils' )
799+ if (! actionsContainer) {
800+ return
801+ }
802+
803+ const focusableElement = actionsContainer .querySelector (' button' )
804+ if (this .focused && focusableElement) {
799805 e .preventDefault ()
800- this . $refs . actions . $refs . triggerButton . $el .focus ()
806+ focusableElement .focus ()
801807 this .focused = false
802- } else {
803- this .$refs .actions .$refs .triggerButton .$el .blur ()
804808 }
805809 },
806810
You can’t perform that action at this time.
0 commit comments