Skip to content

Commit

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

class SplitButtonPanelComponent extends Component {

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

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

Expand Down

0 comments on commit ba25655

Please sign in to comment.