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

Function isTextInputElement

code/styling/public/app.js:3659–3671  ·  view source on GitHub ↗
(elem)

Source from the content-addressed store, hash-verified

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