Skip to content

Commit

Permalink
fix mfu in dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
GrabowskiM committed Dec 15, 2023
1 parent 2b8c9c8 commit 2bae3c2
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import PropTypes from 'prop-types';

import UploadPopupComponent from './components/upload-popup/upload.popup.component';
import { createFileStruct, publishFile, deleteFile, checkCanUpload } from './services/multi.file.upload.service';
import Icon from '../common/icon/icon';

const { Translator, ibexa } = window;
const { Translator, ibexa, document } = window;

export default class MultiFileUploadModule extends Component {
constructor(props) {
Expand Down Expand Up @@ -270,7 +271,7 @@ export default class MultiFileUploadModule extends Component {
removeItemsToUpload: this.removeItemsToUpload,
};

return <UploadPopupComponent {...attrs} />;
return ReactDOM.createPortal(<UploadPopupComponent {...attrs} />, document.body);
}

render() {
Expand Down

0 comments on commit 2bae3c2

Please sign in to comment.