-
Notifications
You must be signed in to change notification settings - Fork 639
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
[5.x]: New entry flyouts trap focus inside the sidebar #15314
Comments
I’m not able to reproduce the initial focus bug. What browser are you using? |
@brandonkelly Firefox, but I'm also seeing the error in Chrome and Safari. I checked again – looks like the focus starts out on the title (I can see the focus outline for a brief moment when the flyout opens), but then immediately switches to the slug. On inspection, the input for the title field has the It's still happening in safe mode, so likely not related to a plugin or config. |
Is this the native Title field, or a custom field? |
@brandonkelly The native title field! |
Fixed the focus trap bug for the next Craft 4 and 5 releases. Still not able to reproduce the focus jumping bug though. It could maybe stem from changes in #15252, but I don’t see how. Can you try rolling back to Craft 5.2.3 and see the bug still exists there? |
@brandonkelly Still happening in 5.2.3 🤔 Cleared cache and Anything else I can try to narrow it down? |
Craft 4.10.5 and 5.2.6 are out now with the focus trap fix. No one on the team has been able to reproduce the focus jumping bug, though. Any chance you can send Composer files and a database backup into support@craftcms.com? |
@brandonkelly Done! Hope this helps, let me know if you need any more information. Curious that nobody can reproduce this, this is happening in both of my current Craft 5 projects. Though they're both based on the same boilerplate, so the same config. Maybe something in our config is somehow broken from a previous version? |
Thanks for sending that in! We were able to reproduce with your files. Turns out the bug was triggered by the tooltip shown on the Author field, for users with long usernames/emails. Fixed for the next release! |
@brandonkelly Crazy 🤯 I just tested again (still on the previous version); I added a short username that doesn't overflow in the sidebar on my account. Still, the focus jumps from the title field to the Show Sidebar button on the top right. Is this the intended behaviour? Shouldn't the focus stay on the title field? |
@MoritzLost Can you test the "craftcms/cms": "5.x-dev as 5.2.6", |
@brandonkelly Still seeing this issue on the latest 5.x branch, unfortunately: Screen.Recording.2024-07-16.at.17.34.37.movThe focus starts out on the title but immediately jumps to the button on the top right. The only changes I made since sending in the database dump:
|
Thanks! I was able to reproduce when creating a new entry via an entry selection modal like that. (I ended up being able to reproduce the previous bug when editing existing entry slideouts, so didn’t think to double-check that the fix worked when creating new entries.) Fixed now. |
Craft 4.10.6 and 5.2.7 are out now with that fix. Thanks for bearing with me! |
@brandonkelly Awesome, thanks! Just updated to 5.2.7, it's working perfectly now 👍 |
What happened?
Description
When creating an entry from an entry model, the flyout sets the focus on the slug field, and it's impossible to focus the main field layout. See the following video:
entry-creation.mov
Steps to reproduce
Expected behavior
Actual behavior
Focus starts out on the slug and there's no way to reach the title field through keyboard navigation.
Craft CMS version
5.2.5
PHP version
8.3
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
The text was updated successfully, but these errors were encountered: