@kaio-xyz/design-system 1.1.64 → 1.1.65
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/dist/index.cjs.js +6 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +6 -0
- package/dist/index.esm.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -397,6 +397,12 @@ var TextField = React.forwardRef(function (_a, ref) {
|
|
|
397
397
|
var _h = React.useState(function () { return Boolean(value || defaultValue); }), hasValue = _h[0], setHasValue = _h[1];
|
|
398
398
|
var internalRef = React.useRef(null);
|
|
399
399
|
var inputRef = ref || internalRef;
|
|
400
|
+
React.useEffect(function () {
|
|
401
|
+
var input = inputRef.current;
|
|
402
|
+
if (input && input.value) {
|
|
403
|
+
setHasValue(true);
|
|
404
|
+
}
|
|
405
|
+
}, []);
|
|
400
406
|
React.useEffect(function () {
|
|
401
407
|
if (value !== undefined)
|
|
402
408
|
setHasValue(value !== '');
|