File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
admin/src/pages/HomePage/components/NavigationItemForm Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ import { AdditionalFields } from './components/AdditionalFields';
3030import { CopyFromLocales } from './components/CopyFromLocales' ;
3131import { RelatedTypeField } from './components/RelatedTypeField' ;
3232import { RelatedEntityField } from './components/RelatedEntityField' ;
33+ import { Combobox } from '@strapi/design-system' ;
34+ import { Box } from '@strapi/design-system' ;
3335
3436export { ContentTypeEntity , GetContentTypeEntitiesPayload } from './types' ;
3537export { 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
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments