Files
C4IT-F4SD-Collector/F4SDwebService/packages/popper.js.1.16.1/content/Scripts/src/utils/getReferenceNode.js
2025-11-11 11:12:05 +01:00

11 lines
401 B
JavaScript

/**
* Returns the reference node of the reference object, or the reference object itself.
* @method
* @memberof Popper.Utils
* @param {Element|Object} reference - the reference element (the popper will be relative to this)
* @returns {Element} parent
*/
export default function getReferenceNode(reference) {
return reference && reference.referenceNode ? reference.referenceNode : reference;
}