MCPcopy Create free account
hub / github.com/reactstrap/reactstrap / handleRef

Function handleRef

src/DropdownMenu.js:111–118  ·  view source on GitHub ↗
(tagRef)

Source from the content-addressed store, hash-verified

109 };
110
111 const handleRef = (tagRef) => {
112 // Send the ref to `react-popper`
113 ref(tagRef);
114 // Send the ref to the parent Dropdown so that clicks outside
115 // it will cause it to close
116 const { onMenuRef } = this.context;
117 if (onMenuRef) onMenuRef(tagRef);
118 };
119
120 return (
121 <Tag

Callers

nothing calls this directly

Calls 1

refFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…