MCPcopy Index your code
hub / github.com/caseywebdev/react-list / initTextarea

Function initTextarea

docs/index.js:4694–4714  ·  view source on GitHub ↗
(element, value, defaultValue, children)

Source from the content-addressed store, hash-verified

4692 null != defaultValue ? "" + getToStringValue(defaultValue) : "";
4693}
4694function initTextarea(element, value, defaultValue, children) {
4695 if (null == value) {
4696 if (null != children) {
4697 if (null != defaultValue) throw Error(formatProdErrorMessage(92));
4698 if (isArrayImpl(children)) {
4699 if (1 < children.length) throw Error(formatProdErrorMessage(93));
4700 children = children[0];
4701 }
4702 defaultValue = children;
4703 }
4704 null == defaultValue && (defaultValue = "");
4705 value = defaultValue;
4706 }
4707 defaultValue = getToStringValue(value);
4708 element.defaultValue = defaultValue;
4709 children = element.textContent;
4710 children === defaultValue &&
4711 "" !== children &&
4712 null !== children &&
4713 (element.value = children);
4714}
4715function setTextContent(node, text) {
4716 if (text) {
4717 var firstChild = node.firstChild;

Callers 2

setInitialPropertiesFunction · 0.85

Calls 2

formatProdErrorMessageFunction · 0.85
getToStringValueFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…