-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Toolbar 'Show more items' button is focused after clicking a button from it #12178
Comments
A cheap and dirty idea could be checking the |
Could you make a draft PR with this? |
Yes, I'm on it. |
cc @ckeditor/qa-team – could you verify this idea? |
@FilipTokarski @Acrophost could you please take a look at it ☝️? Tests should cover:
|
@Mgsy @FilipTokarski @Acrophost please check whether this issue also solves #12186 - because there's a good chance it does. (in this case please update PR so that it closes both issues) |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
Most of the issues above seem to be the same as #12207, only the reproduction steps are a bit different (using toolbar buttons) - @FilipTokarski @Acrophost please verify it and hide the proper comments if that's the case. |
Thanks, you're right 👍 I'll leave the one with inserting image, as it looks a bit different because the focus is still in the toolbar. |
Yes, the image button doesn't focus the editable - https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-image/src/imageupload/imageuploadui.js#L57-L63. I think it will be worth an actual issue. |
In addition to the image button issue - in case where we are using a balloon toolbar, the toolbar hides after inserting an image, but the image is not getting selected (we're losing selection overall) no.toolbar.no.selection.2022-08-4.o.16.46.45.mov |
This comment was marked as resolved.
This comment was marked as resolved.
I've tested the fix on different browsers, devices and editor types - for now I don't see any more issues with focus aside from ones that are already reported. |
Thanks QA, I'll create a PR with the fix. |
The #12178 (comment) should be fixed by #12229 (on the latest master). |
📝 Provide detailed reproduction steps (if any)
✔️ Expected result
Focus is moved to the editable.
❌ Actual result
Focus is moved to the "Show more items" toolbar button.
❓ Possible solution
It is a regression introduced in #12162. Due to moving the focus when any dropdown is closed, it also affects the toolbar dropdown which is closed after the button's command is executed, so it focuses the toolbar back.
The problem occurs on every type of button - generic one, dropdown and splitbutton.
📃 Other details
If you'd like to see this fixed sooner, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: