You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have you tried deactivating all plugins except Gutenberg?
I have tested with all plugins deactivated.
Have you tried replicating the bug using a default theme e.g. Twenty Twenty?
I have tested with a default theme.
Description
The Navigation Block's Page Link Block still shows the option to create a draft even when a page with the same title exists. This could lead to duplicated pages with the same title, which seems unnecessary.
Step-by-step reproduction instructions
Add a navigation block.
Add a Page Link block and start searching for a current page title.
Notice that the create draft option is still visible even for a page title that exists.
Expected Behavior
I expect to not see the option to create a draft when searching for a page whose title exists. I think it would be better if it only showed when you continued typing a new page title that's not currently available.
Current Behavior
The create a draft option still exists.
Screenshots or screen recording (optional)
Visual of the problem where I have a page already published titled "Tuition" yet when I type it in the option remains to create another draft with the same title:
Code snippet (optional)
No response
WordPress Information
WordPress 5.8.
Gutenberg Information
Gutenberg 11.2
What browsers are you seeing the problem on?
Chrome
Device Information
Desktop
Operating System Information
MacOS
The text was updated successfully, but these errors were encountered:
annezazu
changed the title
Navigation Block + Page Link Block: Create draft shows for
Navigation Block + Page Link Block: Create draft option shows when adding an existing page
Aug 10, 2021
Good one. While in that same area, the alignment of text here isn't ideal:
For anyone picking this up, also worth looking at #30170 (comment) for some work-in-progress on the URL dialog itself, which might affect how a new draft button might look.
Is there an existing issue for this?
Have you tried deactivating all plugins except Gutenberg?
Have you tried replicating the bug using a default theme e.g. Twenty Twenty?
Description
The Navigation Block's Page Link Block still shows the option to create a draft even when a page with the same title exists. This could lead to duplicated pages with the same title, which seems unnecessary.
Step-by-step reproduction instructions
Expected Behavior
I expect to not see the option to create a draft when searching for a page whose title exists. I think it would be better if it only showed when you continued typing a new page title that's not currently available.
Current Behavior
The create a draft option still exists.
Screenshots or screen recording (optional)
Visual of the problem where I have a page already published titled "Tuition" yet when I type it in the option remains to create another draft with the same title:
Code snippet (optional)
No response
WordPress Information
WordPress 5.8.
Gutenberg Information
Gutenberg 11.2
What browsers are you seeing the problem on?
Chrome
Device Information
Desktop
Operating System Information
MacOS
The text was updated successfully, but these errors were encountered: