@doist/reactist 28.5.3 → 28.5.4
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/reactist.cjs.development.js +2 -2
- package/dist/reactist.cjs.development.js.map +1 -1
- package/dist/reactist.cjs.production.min.js +1 -1
- package/dist/reactist.cjs.production.min.js.map +1 -1
- package/es/text-area/text-area.js +2 -2
- package/es/text-area/text-area.js.map +1 -1
- package/lib/text-area/text-area.js +1 -1
- package/lib/text-area/text-area.js.map +1 -1
- package/package.json +1 -1
|
@@ -2439,7 +2439,7 @@ function useAutoExpand({
|
|
|
2439
2439
|
return () => textAreaElement.removeEventListener('input', handleInput);
|
|
2440
2440
|
}, [autoExpand, containerRef, internalRef, isControlled]);
|
|
2441
2441
|
React__namespace.useEffect(function setupAutoExpandWhenControlled() {
|
|
2442
|
-
if (!isControlled) {
|
|
2442
|
+
if (!isControlled || !autoExpand) {
|
|
2443
2443
|
return;
|
|
2444
2444
|
}
|
|
2445
2445
|
|
|
@@ -2448,7 +2448,7 @@ function useAutoExpand({
|
|
|
2448
2448
|
if (containerElement) {
|
|
2449
2449
|
containerElement.dataset.replicatedValue = value;
|
|
2450
2450
|
}
|
|
2451
|
-
}, [value, containerRef, isControlled]);
|
|
2451
|
+
}, [value, containerRef, isControlled, autoExpand]);
|
|
2452
2452
|
}
|
|
2453
2453
|
|
|
2454
2454
|
function getInitials(name) {
|