Skip to content

Page Link block: Cannot update text via link editing UI #77169

@t-hamano

Description

@t-hamano

Description

The link editing UI has both a text field and a link field. If the text field is changed, that change should be synchronized to the visual text as well.

Image

This works correctly in the inline link format, but not in the Page Link block within a Navigation block. This issue seems to occur for the first time in WP 7.0.

Image

Step-by-step reproduction instructions

  1. Insert a Navigation block.
  2. Click the inserter and insert "Sample Page".
  3. Click the "Edit Link" button.
  4. Update the text and click the Apply button.
  5. The on-screen text does not change.

Screenshots, screen recording, code snippet

❌ WP 7.0 or Gutenberg trunk

1c5259800a6d8bba9bf309610e40e3f2.mp4

✅ WordPress 6.9

d07be152077085bc1029e8b508dd8598.mp4

Environment info

No response

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • Yes

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] Navigation LinkAffects the Navigation Link Block[Type] BugAn existing feature does not function as intended

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    📥 Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions