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

Function isTextInputElement

code/third-party/public/app.js:2892–2904  ·  view source on GitHub ↗
(elem)

Source from the content-addressed store, hash-verified

2890};
2891
2892function isTextInputElement(elem) {
2893 var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
2894
2895 if (nodeName === 'input') {
2896 return !!supportedInputTypes[elem.type];
2897 }
2898
2899 if (nodeName === 'textarea') {
2900 return true;
2901 }
2902
2903 return false;
2904}
2905
2906/**
2907 * 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