Skip to content
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

DuotoneFilter Breaks in WordPress 6.5 Due to Unstable Context Usage #445

Closed
georgeolaru opened this issue May 2, 2024 · 0 comments
Closed
Assignees
Labels
[Type] Bug WordPress 6.5 Issues related to the WordPress 6.5
Milestone

Comments

@georgeolaru
Copy link
Member

The DuotoneFilter component crashes in WordPress 6.5. This issue might stem from the use of an unstable API BlockList.__unstableElementContext within the component, located in packages/block-editor/src/filters/with-overlay-filter/with-overlay-filter-controls.js.

Given the removal of Reakit and other internal changes in WordPress 6.5, this unstable context may no longer be behaving as expected, leading to component failures. The issue might be related to the recent changes in the underlying Composite component implementation as detailed in the WordPress Core blog.

Steps to Reproduce

  1. Upgrade WordPress to version 6.5.
  2. Navigate to a block (eg. Cards Collection) that is using the DuotoneFilter.
  3. Observe that the block does not render and "This block has encountered an error and cannot be previewed." message appears

We could take into consideration disabling the Duotone feature upon finding a solution to integrate it with the changes from WordPress 6.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Bug WordPress 6.5 Issues related to the WordPress 6.5
Projects
None yet
Development

No branches or pull requests

1 participant