MCPcopy Create free account
hub / github.com/testing-library/user-event / isClickableInput

Function isClickableInput

src/utils/click/isClickableInput.ts:14–20  ·  view source on GitHub ↗
(element: Element)

Source from the content-addressed store, hash-verified

12]
13
14export function isClickableInput(element: Element): boolean {
15 return (
16 isElementType(element, 'button') ||
17 (isElementType(element, 'input') &&
18 CLICKABLE_INPUT_TYPES.includes(element.type))
19 )
20}

Callers 2

functional.tsFile · 0.90
character.tsFile · 0.90

Calls 1

isElementTypeFunction · 0.90

Tested by

no test coverage detected