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';
3131import { stopPropagation } from '../../internal/stopPropagation' ;
3232import styles from './FilterBarDialog.jss' ;
3333import { filterValue , renderSearchWithValue } from './utils' ;
34+ import { createPortal } from 'react-dom' ;
3435
3536const useStyles = createComponentStyles ( styles , { name : 'FilterBarDialog' } ) ;
3637export const FilterDialog = ( props ) => {
@@ -270,7 +271,7 @@ export const FilterDialog = (props) => {
270271 } ) ;
271272 } , [ renderChildren , toggledFilters , handleCheckBoxChange ] ) ;
272273
273- return (
274+ return createPortal (
274275 < Dialog ref = { dialogRef } header = { renderHeader ( ) } footer = { renderFooter ( ) } onAfterClose = { handleClose } >
275276 < div className = { classes . dialog } >
276277 { renderFBSearch && (
@@ -281,6 +282,7 @@ export const FilterDialog = (props) => {
281282 ) }
282283 { renderGroups ( ) }
283284 </ div >
284- </ Dialog >
285+ </ Dialog > ,
286+ document . body
285287 ) ;
286288} ;
You can’t perform that action at this time.
0 commit comments