MCPcopy Create free account
hub / github.com/coder/coder / isInlineInputTarget

Function isInlineInputTarget

site/src/components/Autocomplete/Autocomplete.tsx:261–264  ·  view source on GitHub ↗
(target: EventTarget | null)

Source from the content-addressed store, hash-verified

259 };
260
261 const isInlineInputTarget = (target: EventTarget | null) =>
262 target instanceof Node &&
263 inlineInputRef.current !== null &&
264 inlineInputRef.current.contains(target);
265
266 if (inlineSearch) {
267 const inlineInputValue = isOpen ? inputValue : displayValue;

Callers 1

AutocompleteFunction · 0.85

Calls 1

containsMethod · 0.80

Tested by

no test coverage detected