(props, context)
| 7455 | _inheritsLoose(Overlay, _React$Component); |
| 7456 | |
| 7457 | function Overlay(props, context) { |
| 7458 | var _this; |
| 7459 | |
| 7460 | _this = _React$Component.call(this, props, context) || this; |
| 7461 | |
| 7462 | _this.handleHidden = function () { |
| 7463 | _this.setState({ |
| 7464 | exited: true |
| 7465 | }); |
| 7466 | |
| 7467 | if (_this.props.onExited) { |
| 7468 | var _this$props; |
| 7469 | |
| 7470 | (_this$props = _this.props).onExited.apply(_this$props, arguments); |
| 7471 | } |
| 7472 | }; |
| 7473 | |
| 7474 | _this.state = { |
| 7475 | exited: !props.show |
| 7476 | }; |
| 7477 | _this.onHiddenListener = _this.handleHidden.bind(_assertThisInitialized(_assertThisInitialized(_this))); |
| 7478 | _this._lastTarget = null; |
| 7479 | return _this; |
| 7480 | } |
| 7481 | |
| 7482 | Overlay.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps) { |
| 7483 | if (nextProps.show) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…