MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / isTextInputElement

Function isTextInputElement

code/new-context-api/public/app.js:3020–3032  ·  view source on GitHub ↗
(elem)

Source from the content-addressed store, hash-verified

3018};
3019
3020function isTextInputElement(elem) {
3021 var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
3022
3023 if (nodeName === 'input') {
3024 return !!supportedInputTypes[elem.type];
3025 }
3026
3027 if (nodeName === 'textarea') {
3028 return true;
3029 }
3030
3031 return false;
3032}
3033
3034/**
3035 * HTML nodeType values that represent the type of the node

Callers 1

app.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected