Skip to content
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

Fix focus becoming impossible to get after escape pressed in the link picker modal #3770

Merged
merged 2 commits into from
Feb 8, 2023

Conversation

julien-nc
Copy link
Member

requires nextcloud-libraries/vue-richtext#897 (will most likely be included in the next vue-richtext release)

We can now tell the link picker when it is created while the Viewer is displayed so an event is emitted to deal with the focus trap issue.

@cypress
Copy link

cypress bot commented Feb 6, 2023

Passing run #8544 ↗︎

0 132 0 0 Flakiness 0

Details:

Fix focus becoming impossible to get after escape pressed in the link picker mod...
Project: Text Commit: c4ffc12ffc
Status: Passed Duration: 04:17 💡
Started: Feb 8, 2023 11:36 AM Ended: Feb 8, 2023 11:40 AM

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.

Copy link
Collaborator

@max-nextcloud max-nextcloud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was not able to reproduce the behavior described as without this fix escape would close the entire viewer for me. Maybe I'm running an outdated server or viewer version.

With this fix the behavior seems correct.

Code changes seem reasonable as well. Thanks 🎉

@julien-nc julien-nc force-pushed the fix/noid/link-picker-focus-issue branch from af04d35 to 470fb23 Compare February 7, 2023 10:08
@julien-nc
Copy link
Member Author

/compile

@julien-nc julien-nc force-pushed the fix/noid/link-picker-focus-issue branch from f2e47d9 to 5217a6c Compare February 8, 2023 11:12
@julien-nc
Copy link
Member Author

/compile

Signed-off-by: nextcloud-command <[email protected]>
@julien-nc julien-nc merged commit f5b48ad into main Feb 8, 2023
@delete-merged-branch delete-merged-branch bot deleted the fix/noid/link-picker-focus-issue branch February 8, 2023 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants