-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Can't reliably select and edit HTML Blocks #12577
Comments
Tested and confirmed using WordPress 4.9.8 and Gutenberg 4.6.1
Related: #11885 |
Noting a temporary workaround which is to click into an adjacent block (or the title) and press an up or down arrow key to reach the block. |
This has been marked as High Priority over a month ago and yet, nothing seems to be happening with it. Any reason this wasn't fixed as part of 5.0.3? |
It may not have been visible enough. I will add it to a milestone instead. |
This was added to the 5.0 Milestone, and then changed to the 5.1 Milestone, and now it seems to have been changed to 5.x which I can only presume it means 'sometime in the future'. It's marked as high priority so I'm wondering why it keeps getting pushed back? This is still an issue in 5.0.3. I would think that not being able to reliably select blocks would be considered important for a block editor. |
Any chance this can be looked at for 5.2? It's been almost 4 months now and this High Priority issue still hasn't been looked at. |
I can confirm that it's difficult to select this block on its edges. |
It was also reported in #14071 by @jeiseman:
|
I can't seem to reproduce these days. I think it's probably fixed. Let me know the exact steps if you can reproduce. Thanks. |
@youknowriad Can you please reopen this as it's still an issue. Here's another vid I just created: https://cl.ly/5318c5aa8869 Steps:
|
I wasn't able to replicate this on 7.5: @maddisondesigns are you still seeing the issue on the latest plugin release? |
@glendaviesnz Yes, this is still very much an issue. Here's another vid I just created: https://share.getcloudapp.com/9ZuArmrd You can see that it's still incredible difficult to edit the block because it's so hard to get the Block Toolbar to actually display. Clicking on the block does nothing, clicking just above, to the right or to the left also does nothing. The only way to get the block toolbar to display is to click in a very tiny space just below the block. You can't click too low though, otherwise you end up displaying the toolbar for the block below. Not only that, but because you've now removed the block outlines on hover, you've just made it even harder to select as there's no indication where one block ends and another starts. Tested With: |
Thanks for including the browser details @maddisondesigns - looks like it is a Firefox related issue, was not able to reproduce in Chrome, but easily reproducible in Firefox. |
@glendaviesnz I just tried it in Chrome (80.0.3987.116) and yep, when I click on the Block itself, it shows the Block Toolbar as expected. |
I am picking it is something to do with Firefox's security settings. The html preview puts the html code in a sandboxed iframe, and it looks like Firefox is not allowing click events in that iFrame to bubble up, so as you noted you need to click on the very edge which works because there is an area of padding within the block, but outside the sandboxed iFrame. I will do some research and see if there are any easy solutions to this. |
@maddisondesigns finally got some time to have another look at this - have put up a PR for a potential fix at #20425. |
@glendaviesnz Fantastic! Thanks for the update. |
Describe the bug
After adding code to an HTML Block, and then deselecting that block, it's incredibly difficult to reselect it again, and therefore hard to edit.
Vid: https://cl.ly/d411723691e7
This is another issue related to one that I raised almost a month ago, in regards to not being able to select blocks, and the Block toolbar not displaying. This issue is effecting numerous blocks in the editor and making them become uneditable.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I should be able to click on the Block to select it and edit it.
Desktop (please complete the following information):
See Also: #11906
The text was updated successfully, but these errors were encountered: