-
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
Block editor: Can not edit slug with "Show template" enabled #69509
Comments
If I assign a different template than the default "page" template, this bug does not happen, entering the slug works: Activate Twenty Twenty-Five In the template section in the document panel, select "create new template". |
If zoom out is enabled when you try to edit the slug, the zoom out is disabled when you start typing, but the option in the toolbar still shows it as enabled. |
Thanks for testing this feature, @carolinan!
I'm getting the same behavior here. We've not shipped anything for this logic since Beta 1. The problem comes from this part of the selector since changing the post type slug also affects potential template ID resolution. gutenberg/packages/core-data/src/private-selectors.ts Lines 242 to 258 in 66394c4
|
Started a draft PR - #69516. |
Description
When editing a page or post in the block editor, and "Show template" is enabled,
I can not edit the slug correctly due to a bug.
A soon as I enter a character into the slug input field in the popover, the change is saved and the page "refreshes":
The page content becomes blank for a moment until the blocks shows again, and the popover is closed.
So, I can only enter one character at the time.
This happens with Gutenberg trunk enabled.
In 6.8 beta, without Gutenberg active, the canvas blinks and refreshes when I enter each character into the slug field. But the popover does not close, so I can continue entering my updated slug into the field.
Step-by-step reproduction instructions
Activate a block theme.
Create or edit a page or post in the block editor.
Enable "show template".
Open the document panel.
Open the slug popover by clicking on the link next to the text "Slug"
Try entering a long slug.
Screenshots, screen recording, code snippet
With Gutenberg active:
page-slug.mp4
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
The text was updated successfully, but these errors were encountered: