Skip to content

Commit 611b901

Browse files
fix: search in media library (#599)
1 parent b6fe9c0 commit 611b901

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

admin/src/pages/HomePage/components/NavigationItemForm/index.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ import { AdditionalFields } from './components/AdditionalFields';
3030
import { CopyFromLocales } from './components/CopyFromLocales';
3131
import { RelatedTypeField } from './components/RelatedTypeField';
3232
import { RelatedEntityField } from './components/RelatedEntityField';
33+
import { Combobox } from '@strapi/design-system';
34+
import { Box } from '@strapi/design-system';
3335

3436
export { ContentTypeEntity, GetContentTypeEntitiesPayload } from './types';
3537
export { NavigationItemFormSchema } from './utils/form';
@@ -258,7 +260,15 @@ export const NavigationItemForm: React.FC<NavigationItemFormProps> = ({
258260
/>
259261
</Grid.Root>
260262
)}
261-
263+
{/* Strapi Design System inside modals can cause unstable focus (esp. in MediaLibrary) due to Radix-UI focus handling.
264+
Wrapping with Combobox (which uses FocusScope) prevents infinite focus bouncing. */}
265+
{values.type !== 'INTERNAL' && (
266+
<Grid.Root display="none">
267+
<Box display="none">
268+
<Combobox />
269+
</Box>
270+
</Grid.Root>
271+
)}
262272
<AdditionalFields />
263273

264274
<CopyFromLocales

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "strapi-plugin-navigation",
3-
"version": "3.2.3",
3+
"version": "3.2.4",
44
"description": "Strapi - Navigation plugin",
55
"strapi": {
66
"name": "navigation",

0 commit comments

Comments
 (0)