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

Function hasPointerEvents

src/utils/pointer/cssPointerEvents.ts:7–12  ·  view source on GitHub ↗
(
  instance: Instance,
  element: Element,
)

Source from the content-addressed store, hash-verified

5import {ApiLevel, getLevelRef} from '../misc/level'
6
7export function hasPointerEvents(
8 instance: Instance,
9 element: Element,
10): boolean {
11 return checkPointerEvents(instance, element)?.pointerEvents !== 'none'
12}
13
14function closestPointerEventsDeclaration(element: Element):
15 | {

Callers 4

selectOptionsBaseFunction · 0.90
moveMethod · 0.90
releaseMethod · 0.90

Calls 1

checkPointerEventsFunction · 0.85

Tested by

no test coverage detected