-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Labels
[Package] Block editor/packages/block-editor/packages/block-editor[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
Description
After the stabilization of LinkControl in Gutenberg 19.9 (included in WordPress 6.8) , the deprecated export __experimentalLinkControl
throws the following error when accessing DEFAULT_LINK_SETTINGS
:
Uncaught TypeError: d.__experimentalLinkControl.DEFAULT_LINK_SETTINGS is not iterable
Using the stabilized LinkControl
directly does not cause any issues. However, this can break any custom blocks that still rely on __experimentalLinkControl.
Step-by-step reproduction instructions
- Add any custom block that uses
__experimentalLinkControl
and accessDEFAULT_LINK_SETTINGS
or update the default button block
LinkControl,
to previously used__experimentalLinkControl
__experimentalLinkControl as LinkControl,
- Confirm the block shows the message
This block has encountered an error and cannot be previewed.
and the console logs the errorUncaught TypeError: d.__experimentalLinkControl.DEFAULT_LINK_SETTINGS is not iterable
.
Screenshots, screen recording, code snippet
No response
Environment info
- Gutenberg trunk
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
Mayank-Tripathi32
Metadata
Metadata
Assignees
Labels
[Package] Block editor/packages/block-editor/packages/block-editor[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended