MCPcopy Create free account
hub / github.com/caseywebdev/react-list / updateTextarea

Function updateTextarea

docs/index.js:4681–4693  ·  view source on GitHub ↗
(element, value, defaultValue)

Source from the content-addressed store, hash-verified

4679 }
4680}
4681function updateTextarea(element, value, defaultValue) {
4682 if (
4683 null != value &&
4684 ((value = "" + getToStringValue(value)),
4685 value !== element.value && (element.value = value),
4686 null == defaultValue)
4687 ) {
4688 element.defaultValue !== value && (element.defaultValue = value);
4689 return;
4690 }
4691 element.defaultValue =
4692 null != defaultValue ? "" + getToStringValue(defaultValue) : "";
4693}
4694function initTextarea(element, value, defaultValue, children) {
4695 if (null == value) {
4696 if (null != children) {

Callers 2

restoreStateOfTargetFunction · 0.85
updatePropertiesFunction · 0.85

Calls 1

getToStringValueFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…