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
Latest Posts block: Post links/titles should not be clickable #31169
Comments
Also appears to be the case for the categories block. I can pick this up, but I'm not sure on the best solution. As far as I can see, I've seen this issue being solved elsewhere in different ways:
The In the past the pseudo link approach was used for these cases, but recently a similar issue in the Site Editor was fixed using the |
Thank you @vdwijngaert. We probably want to fix this in a way that is consistent with previous issues, but I see two other alternative options:
|
I didn't know this could actually prevent clicking. Nifty! This would prevent being able to preview certain styles for pointer events, though.
Slightly less annoying, but to me that still feels more like a bug than a feature. I'm starting to get the feeling that there's a need for uniformity, perhaps in the form of a dummy link component? This encapsulates all dummy links to one component, and might make it easier to do UX adjustments later on (like a popover that says something in the likes of "hold CTRL while clicking to open link"). |
The way we solved this in other blocks was by adding a |
It would be good if we could decide if a new component should be created, or which method should be used, so that the problem can be resolved. |
Thank you @carolinan. Are there any downsides to the solution you mentioned earlier and that has already been used elsewhere? If not, let's go with that! |
I believe this issue was fixed in #40593. It has been fully discussed in that PR and the approach seems appropriate to me. How about closing this issue? |
Steps to reproduce the behavior
Go to the editor and add the Latest Posts block
Click on a post title
Notice the link behaves like an actual link (forcing you to exit the editor), which is not an expected behavior inside the block editor
What I expected to happen
I was expecting to be able to select the post (or the block) to see the options the block provides me
What actually happened
If the post/page is not saved, the browser shows a warning. If the post/page is saved, then you immediately exit the editor
This was first reported on a WordPress.com simple site but we were able to reproduce it on a local WordPress.org, with and without the Gutenberg plugin (Version 10.3.1).
The text was updated successfully, but these errors were encountered: