MCPcopy Index your code
hub / github.com/simstudioai/sim / hasOpenFloatingLayer

Function hasOpenFloatingLayer

packages/emcn/src/components/modal/modal.tsx:55–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53 'data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:animate-out data-[state=open]:animate-in motion-reduce:animate-none'
54
55function hasOpenFloatingLayer() {
56 return Boolean(document.querySelector('[data-radix-popper-content-wrapper] [data-state="open"]'))
57}
58
59/**
60 * Clears a stale `pointer-events: none` lock Radix can leave on `<body>` when

Callers 1

modal.tsxFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected