(props, context)
| 15482 | _inheritsLoose(OverlayTrigger, _React$Component2); |
| 15483 | |
| 15484 | function OverlayTrigger(props, context) { |
| 15485 | var _this; |
| 15486 | |
| 15487 | _this = _React$Component2.call(this, props, context) || this; |
| 15488 | |
| 15489 | _this.getTarget = function () { |
| 15490 | return external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default.a.findDOMNode(_this.trigger.current); |
| 15491 | }; |
| 15492 | |
| 15493 | _this.handleShow = function () { |
| 15494 | clearTimeout(_this._timeout); |
| 15495 | _this._hoverState = 'show'; |
| 15496 | var delay = normalizeDelay(_this.props.delay); |
| 15497 | |
| 15498 | if (!delay.show) { |
| 15499 | _this.show(); |
| 15500 | |
| 15501 | return; |
| 15502 | } |
| 15503 | |
| 15504 | _this._timeout = setTimeout(function () { |
| 15505 | if (_this._hoverState === 'show') _this.show(); |
| 15506 | }, delay.show); |
| 15507 | }; |
| 15508 | |
| 15509 | _this.handleHide = function () { |
| 15510 | clearTimeout(_this._timeout); |
| 15511 | _this._hoverState = 'hide'; |
| 15512 | var delay = normalizeDelay(_this.props.delay); |
| 15513 | |
| 15514 | if (!delay.hide) { |
| 15515 | _this.hide(); |
| 15516 | |
| 15517 | return; |
| 15518 | } |
| 15519 | |
| 15520 | _this._timeout = setTimeout(function () { |
| 15521 | if (_this._hoverState === 'hide') _this.hide(); |
| 15522 | }, delay.hide); |
| 15523 | }; |
| 15524 | |
| 15525 | _this.handleFocus = function (e) { |
| 15526 | var _this$getChildProps = _this.getChildProps(), |
| 15527 | onFocus = _this$getChildProps.onFocus; |
| 15528 | |
| 15529 | _this.handleShow(e); |
| 15530 | |
| 15531 | if (onFocus) onFocus(e); |
| 15532 | }; |
| 15533 | |
| 15534 | _this.handleBlur = function (e) { |
| 15535 | var _this$getChildProps2 = _this.getChildProps(), |
| 15536 | onBlur = _this$getChildProps2.onBlur; |
| 15537 | |
| 15538 | _this.handleHide(e); |
| 15539 | |
| 15540 | if (onBlur) onBlur(e); |
| 15541 | }; |
nothing calls this directly
no test coverage detected
searching dependent graphs…