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

Function isTextInputElement

code/one-direction-data-flow/public/app.js:3532–3544  ·  view source on GitHub ↗
(elem)

Source from the content-addressed store, hash-verified

3530};
3531
3532function isTextInputElement(elem) {
3533 var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
3534
3535 if (nodeName === 'input') {
3536 return !!supportedInputTypes[elem.type];
3537 }
3538
3539 if (nodeName === 'textarea') {
3540 return true;
3541 }
3542
3543 return false;
3544}
3545
3546/**
3547 * 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