MCPcopy Create free account
hub / github.com/adobe/react-spectrum / willOpenKeyboard

Function willOpenKeyboard

packages/react-aria/src/utils/keyboard.tsx:42–48  ·  view source on GitHub ↗
(target: Element)

Source from the content-addressed store, hash-verified

40]);
41
42export function willOpenKeyboard(target: Element) {
43 return (
44 (target instanceof HTMLInputElement && !nonTextInputTypes.has(target.type)) ||
45 target instanceof HTMLTextAreaElement ||
46 (target instanceof HTMLElement && target.isContentEditable)
47 );
48}

Callers 3

onBlurFunction · 0.90
onBlurFunction · 0.90

Calls 1

hasMethod · 0.65

Tested by

no test coverage detected