Skip to content

useFocusTrap: fallbackFocus was specified but was not a node, or did not return a nodeΒ #8090

@susnux

Description

@susnux

I see this sometimes in the browser dev tools but it also regularly (30% chance) breaks server frontend unit tests:

 Error: `fallbackFocus` was specified but was not a node, or did not return a node
 ❯ getNodeForOption ../../node_modules/focus-trap/dist/focus-trap.js:284:13
 ❯ updateTabbableNodes ../../node_modules/focus-trap/dist/focus-trap.js:410:46
 ❯ Object.activate ../../node_modules/focus-trap/dist/focus-trap.js:866:9
 ❯ useFocusTrap ../../node_modules/@nextcloud/vue/src/components/NcModal/NcModal.vue:384:1

This error originated in "apps/federatedfilesharing/src/services/dialogService.spec.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.

Metadata

Metadata

Assignees

No one assigned

    Labels

    1. to developAccepted and waiting to be taken care ofbugSomething isn't workingfeature: functionscomposables, functions, mixins and other non-components

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions