Skip to content

Commit

Permalink
Merge pull request #16585 from zhem0004/fixModalRender
Browse files Browse the repository at this point in the history
fix: modal initialisation
  • Loading branch information
ramonlsouza committed Jan 27, 2023
2 parents fa7aa6b + c32de5e commit af3899f
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -20,6 +20,12 @@ export const getModal = () => {

export const withModalMounter = ComponentToWrap =>
class ModalMounterWrapper extends PureComponent {

componentDidMount(){
// needs to ne executed as initialization
currentModal.tracker.changed();
}

static mount(modalComponent) {
showModal(null);
// defer the execution to a subsequent event loop
Expand Down

0 comments on commit af3899f

Please sign in to comment.