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

Function isTextInputElement

code/redux/public/app.js:3910–3922  ·  view source on GitHub ↗
(elem)

Source from the content-addressed store, hash-verified

3908};
3909
3910function isTextInputElement(elem) {
3911 var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
3912
3913 if (nodeName === 'input') {
3914 return !!supportedInputTypes[elem.type];
3915 }
3916
3917 if (nodeName === 'textarea') {
3918 return true;
3919 }
3920
3921 return false;
3922}
3923
3924/**
3925 * 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