MCPcopy Create free account
hub / github.com/ReactTooltip/react-tooltip / removeActiveAnchor

Function removeActiveAnchor

src/test/tooltip-observers.spec.js:355–362  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

353 const containerRef = useRef(null)
354
355 const removeActiveAnchor = () => {
356 if (containerRef.current) {
357 const anchorToRemove = containerRef.current.querySelector('#active-anchor')
358 if (anchorToRemove) {
359 containerRef.current.removeChild(anchorToRemove)
360 }
361 }
362 }
363
364 return (
365 <div ref={containerRef}>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected