GoScrobble/web/node_modules/reactstrap/lib/PopperTargetHelper.js

24 lines
655 B
JavaScript
Raw Normal View History

2022-04-25 02:47:15 +00:00
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.default = void 0;
var _propTypes = _interopRequireDefault(require("prop-types"));
var _utils = require("./utils");
var PopperTargetHelper = function PopperTargetHelper(props, context) {
context.popperManager.setTargetNode((0, _utils.getTarget)(props.target));
return null;
};
PopperTargetHelper.contextTypes = {
popperManager: _propTypes.default.object.isRequired
};
PopperTargetHelper.propTypes = {
target: _utils.targetPropType.isRequired
};
var _default = PopperTargetHelper;
exports.default = _default;