Skip to content

Commit

Permalink
Refactor #1880 - For Calendar
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Mar 17, 2021
1 parent a80d7ea commit ea25390
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/calendar/CalendarPanel.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import { CSSTransition } from 'react-transition-group';
import { Portal } from '../portal/Portal';

class CalendarPanelComponent extends Component {

Expand Down Expand Up @@ -31,7 +31,7 @@ class CalendarPanelComponent extends Component {
render() {
let element = this.renderElement();

return this.props.inline ? element : ReactDOM.createPortal(element, this.props.appendTo || document.body);
return this.props.inline ? element : <Portal element={element} appendTo={this.props.appendTo} />;
}

}
Expand Down

0 comments on commit ea25390

Please sign in to comment.