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

Function isTextInputElement

code/higher-order-components/public/app.js:3653–3665  ·  view source on GitHub ↗
(elem)

Source from the content-addressed store, hash-verified

3651};
3652
3653function isTextInputElement(elem) {
3654 var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
3655
3656 if (nodeName === 'input') {
3657 return !!supportedInputTypes[elem.type];
3658 }
3659
3660 if (nodeName === 'textarea') {
3661 return true;
3662 }
3663
3664 return false;
3665}
3666
3667/**
3668 * 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