MCPcopy Index your code
hub / github.com/react-bootstrap/react-bootstrap / normalizeDelay

Function normalizeDelay

src/OverlayTrigger.tsx:44–51  ·  view source on GitHub ↗
(delay?: OverlayDelay)

Source from the content-addressed store, hash-verified

42}
43
44function normalizeDelay(delay?: OverlayDelay) {
45 return delay && typeof delay === 'object'
46 ? delay
47 : {
48 show: delay,
49 hide: delay,
50 };
51}
52
53// Simple implementation of mouseEnter and mouseLeave.
54// React's built version is broken: https://github.com/facebook/react/issues/4251

Callers 1

OverlayTriggerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…