From 3e8a81a53a56ea14a24ab65da42037ccd9e6a111 Mon Sep 17 00:00:00 2001
From: Marin Atanasov <8436925+tyxla@users.noreply.github.com>
Date: Wed, 6 Nov 2024 12:08:47 +0900
Subject: [PATCH] Inserter: Fix InserterListbox rendering
---
.../src/components/inserter-listbox/index.js | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/packages/block-editor/src/components/inserter-listbox/index.js b/packages/block-editor/src/components/inserter-listbox/index.js
index bc833b0e4c36b1..025a79ee7ba75e 100644
--- a/packages/block-editor/src/components/inserter-listbox/index.js
+++ b/packages/block-editor/src/components/inserter-listbox/index.js
@@ -2,6 +2,7 @@
* WordPress dependencies
*/
import { Composite } from '@wordpress/components';
+import { Fragment } from '@wordpress/element';
/**
* Internal dependencies
@@ -11,9 +12,17 @@ export { default as InserterListboxGroup } from './group';
export { default as InserterListboxRow } from './row';
export { default as InserterListboxItem } from './item';
+function InserterListBoxWrapper( { key, children } ) {
+ return { children };
+}
+
function InserterListbox( { children } ) {
return (
- > }>
+
{ children }
);