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

Function isTextInputElement

code/dependency-injection/public/app.js:3752–3764  ·  view source on GitHub ↗
(elem)

Source from the content-addressed store, hash-verified

3750};
3751
3752function isTextInputElement(elem) {
3753 var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
3754
3755 if (nodeName === 'input') {
3756 return !!supportedInputTypes[elem.type];
3757 }
3758
3759 if (nodeName === 'textarea') {
3760 return true;
3761 }
3762
3763 return false;
3764}
3765
3766/**
3767 * 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