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

Function isTextInputElement

code/communication/public/app.js:3694–3706  ·  view source on GitHub ↗
(elem)

Source from the content-addressed store, hash-verified

3692};
3693
3694function isTextInputElement(elem) {
3695 var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
3696
3697 if (nodeName === 'input') {
3698 return !!supportedInputTypes[elem.type];
3699 }
3700
3701 if (nodeName === 'textarea') {
3702 return true;
3703 }
3704
3705 return false;
3706}
3707
3708/**
3709 * 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