File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/main/src/components/FilterBar Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ import { Ui5DialogDomRef } from '../../interfaces/Ui5DialogDomRef';
31
31
import { stopPropagation } from '../../internal/stopPropagation' ;
32
32
import styles from './FilterBarDialog.jss' ;
33
33
import { filterValue , renderSearchWithValue } from './utils' ;
34
+ import { createPortal } from 'react-dom' ;
34
35
35
36
const useStyles = createComponentStyles ( styles , { name : 'FilterBarDialog' } ) ;
36
37
export const FilterDialog = ( props ) => {
@@ -270,7 +271,7 @@ export const FilterDialog = (props) => {
270
271
} ) ;
271
272
} , [ renderChildren , toggledFilters , handleCheckBoxChange ] ) ;
272
273
273
- return (
274
+ return createPortal (
274
275
< Dialog ref = { dialogRef } header = { renderHeader ( ) } footer = { renderFooter ( ) } onAfterClose = { handleClose } >
275
276
< div className = { classes . dialog } >
276
277
{ renderFBSearch && (
@@ -281,6 +282,7 @@ export const FilterDialog = (props) => {
281
282
) }
282
283
{ renderGroups ( ) }
283
284
</ div >
284
- </ Dialog >
285
+ </ Dialog > ,
286
+ document . body
285
287
) ;
286
288
} ;
You can’t perform that action at this time.
0 commit comments