@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.
@@ -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) {