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

Function isTextInputElement

code/composition/public/app.js:3797–3809  ·  view source on GitHub ↗
(elem)

Source from the content-addressed store, hash-verified

3795};
3796
3797function isTextInputElement(elem) {
3798 var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
3799
3800 if (nodeName === 'input') {
3801 return !!supportedInputTypes[elem.type];
3802 }
3803
3804 if (nodeName === 'textarea') {
3805 return true;
3806 }
3807
3808 return false;
3809}
3810
3811/**
3812 * 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