@agility/plenum-ui 1.3.28 → 1.3.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.esm.js +6 -0
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +6 -0
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/lib/index.esm.js
CHANGED
|
@@ -12726,6 +12726,12 @@ var Textarea = function (_a, ref) {
|
|
|
12726
12726
|
setValue(targetValue);
|
|
12727
12727
|
};
|
|
12728
12728
|
var discriptionStyles = cn("text-sm mt-1 block", { "text-gray-500": !isError }, { "text-red-500": isError });
|
|
12729
|
+
useEffect(function () {
|
|
12730
|
+
//if the external value is updated by the parent component, reset the value in here...
|
|
12731
|
+
if (externalValue !== undefined && externalValue !== null) {
|
|
12732
|
+
setValue(externalValue);
|
|
12733
|
+
}
|
|
12734
|
+
}, [externalValue]);
|
|
12729
12735
|
if (!id)
|
|
12730
12736
|
id = "ta-".concat(uniqueID);
|
|
12731
12737
|
return (React__default.createElement("div", { className: cn({ "opacity-50": isDisabled }) },
|