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

[RNMobile] Fix for the Classic Block "null" inside Unsupported Block editor (target v1.32) #24571

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion packages/block-library/src/missing/edit.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,13 @@ export class UnsupportedBlockEdit extends Component {
// On iOS, onModalHide is called when the controller is still part of the hierarchy.
// A small delay will ensure that the controller has already been removed.
this.timeout = setTimeout( () => {
// for the Classic block, the content is kept in the `content` attribute
const content =
blockName === 'core/freeform'
? attributes.content
: attributes.originalContent;
requestUnsupportedBlockFallback(
attributes.originalContent,
content,
clientId,
blockName,
blockTitle
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native-editor/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wordpress/react-native-editor",
"version": "1.32.0",
"version": "1.32.1",
"description": "Mobile WordPress gutenberg editor.",
"author": "The WordPress Contributors",
"license": "GPL-2.0-or-later",
Expand Down