MCPcopy Index your code
hub / github.com/docker/getting-started / Overlay

Function Overlay

app/src/static/js/react-bootstrap.js:7457–7480  ·  view source on GitHub ↗
(props, context)

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 1

_assertThisInitializedFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…