MCPcopy Create free account
hub / github.com/error311/FileRise / viewOptionsOutside

Function viewOptionsOutside

public/js/fileListView.js:5741–5747  ·  view source on GitHub ↗
(ev)

Source from the content-addressed store, hash-verified

5739}
5740
5741function viewOptionsOutside(ev) {
5742 if (!viewOptionsPopover || viewOptionsPopover.style.display === "none") return;
5743 const anchor = viewOptionsAnchor;
5744 if (viewOptionsPopover.contains(ev.target)) return;
5745 if (anchor && (ev.target === anchor || anchor.contains(ev.target))) return;
5746 hideViewOptionsPopover();
5747}
5748
5749function viewOptionsEscape(ev) {
5750 if (ev.key === "Escape") hideViewOptionsPopover();

Callers

nothing calls this directly

Calls 1

hideViewOptionsPopoverFunction · 0.85

Tested by

no test coverage detected