import Portal from 'rc-util/lib/Portal';
import Trigger from './index';

Portal.prototype.render = function () { // eslint-disable-line
  return this.props.children;
};

const render = Trigger.prototype.render;

Trigger.prototype.render = function () { // eslint-disable-line
  const tree = render.call(this);

  if (this.state.popupVisible) {
    return tree;
  }

  return tree[0];
};

export default Trigger;

@@ -333,16 +333,35 @@
 pVisible
+ && this._component
 ) %7B%0A    

Fix mock