modifyChildren(children) {
    return React.Children.map(children, child => {
      let newProps = {};
      if (child.type.className === Target.className) {
        newProps = {
          _onClick: this.onTargetClick,
          _targetRef: this.setTargetRef,
        };
      } else if (child.type.className === Content.className) {
        newProps = {
          _onComponentWillDestroy: this.onContentWillDestroy,
          _onOutsideClick: this.onContentOutsideClick,
          _portalClassName: this.props.portalClassName,
          _portalRoot: this.props.portalRoot,
          _show: this.show,
          _stack: this.props.groupName,
          _targetRef: this.state.targetRef,
          _usePortal: this.props.usePortal,
        };
      }
      return React.cloneElement(child, newProps);
    });
  }
/*  our target and content children must be internally modified in order for our stacking and binding
      to work properly. This adds those internal props to the children
  */
our target and content children must be internally modified in order for our stacking and binding
to work properly. This adds those internal props to the children
our target and content children must be internally modified in order for our stacking and binding to work properly . This adds those internal props to the children
modifyChildren(children) {
    return React.Children.map(children, child => {
      let newProps = {};
      if (child.type.className === Target.className) {
        newProps = {
          _onClick: this.onTargetClick,
          _targetRef: this.setTargetRef,
        };
      } else if (child.type.className === Content.className) {
        newProps = {
          _onComponentWillDestroy: this.onContentWillDestroy,
          _onOutsideClick: this.onContentOutsideClick,
          _portalClassName: this.props.portalClassName,
          _portalRoot: this.props.portalRoot,
          _show: this.show,
          _stack: this.props.groupName,
          _targetRef: this.state.targetRef,
          _usePortal: this.props.usePortal,
        };
      }
      return React.cloneElement(child, newProps);
    });
  }
modifyChildren ( children ) { return React . Children . map ( children , child => { let newProps = { } ; if ( child . type . className === Target . className ) { newProps = { _onClick : this . onTargetClick , _targetRef : this . setTargetRef , } ; } else if ( child . type . className === Content . className ) { newProps = { _onComponentWillDestroy : this . onContentWillDestroy , _onOutsideClick : this . onContentOutsideClick , _portalClassName : this . props . portalClassName , _portalRoot : this . props . portalRoot , _show : this . show , _stack : this . props . groupName , _targetRef : this . state . targetRef , _usePortal : this . props . usePortal , } ; } return React . cloneElement ( child , newProps ) ; } ) ; }
our target and content children must be internally modified in order for our stacking and binding
to work properly.
our target and content children must be internally modified in order for our stacking and binding to work properly .