@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.js
CHANGED
|
@@ -12752,6 +12752,12 @@ var Textarea = function (_a, ref) {
|
|
|
12752
12752
|
setValue(targetValue);
|
|
12753
12753
|
};
|
|
12754
12754
|
var discriptionStyles = cn("text-sm mt-1 block", { "text-gray-500": !isError }, { "text-red-500": isError });
|
|
12755
|
+
React.useEffect(function () {
|
|
12756
|
+
//if the external value is updated by the parent component, reset the value in here...
|
|
12757
|
+
if (externalValue !== undefined && externalValue !== null) {
|
|
12758
|
+
setValue(externalValue);
|
|
12759
|
+
}
|
|
12760
|
+
}, [externalValue]);
|
|
12755
12761
|
if (!id)
|
|
12756
12762
|
id = "ta-".concat(uniqueID);
|
|
12757
12763
|
return (React__default["default"].createElement("div", { className: cn({ "opacity-50": isDisabled }) },
|