-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable focus-trap for Popover by default #3021
Conversation
Signed-off-by: Raimund Schlüßler <[email protected]>
I guess the problem here is that focus-trap by default returns the focus to whatever element had focus upon activation of the focus trap. Would it be ok to set |
This what the behavior who we want, but it should be optional. |
Weird enough, setting |
We will merge it for now, and keep trying a solution for it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
This PR disabled the focus trap for Popovers by default for the moment. Reason is, that focusing other elements from within an Actions menu does not work anymore. E.g. here: https://github.com/nextcloud/tasks/blob/master/src/components/TaskBody.vue#L583-L588 the call to
focus()
has no effect.Also see this example (copy into docs):
The input should be focused when clicking on "Focus input" in the menu.