@agility/plenum-ui 1.3.15 → 1.3.16
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
|
@@ -12443,6 +12443,12 @@ var TextInput = function (_a, ref) {
|
|
|
12443
12443
|
var _d = useState(false); _d[0]; var setIsActive = _d[1];
|
|
12444
12444
|
var _e = useState(externalValue || defaultValue || ""), value = _e[0], setValue = _e[1];
|
|
12445
12445
|
var inputRef = useRef(null);
|
|
12446
|
+
useEffect(function () {
|
|
12447
|
+
//if the external value is updated by the parent component, reset the value in here...
|
|
12448
|
+
if (externalValue !== undefined && externalValue !== null) {
|
|
12449
|
+
setValue(externalValue);
|
|
12450
|
+
}
|
|
12451
|
+
}, [externalValue]);
|
|
12446
12452
|
// set force focus
|
|
12447
12453
|
useEffect(function () {
|
|
12448
12454
|
var input = inputRef.current;
|