MCPcopy Create free account
hub / github.com/microsoft/SandDance / isTextInputElement

Function isTextInputElement

docs/external/js/react-dom.development.js:9174–9186  ·  view source on GitHub ↗
(elem)

Source from the content-addressed store, hash-verified

9172 };
9173
9174 function isTextInputElement(elem) {
9175 var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
9176
9177 if (nodeName === 'input') {
9178 return !!supportedInputTypes[elem.type];
9179 }
9180
9181 if (nodeName === 'textarea') {
9182 return true;
9183 }
9184
9185 return false;
9186 }
9187
9188 var eventTypes$1 = {
9189 change: {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected