@ikatec/nebula-react 1.11.0-beta.5 → 1.11.0-beta.6
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.
|
Binary file
|
package/dist/index.js
CHANGED
|
@@ -8322,7 +8322,7 @@ var TextArea = React25__namespace.forwardRef(
|
|
|
8322
8322
|
if (!textarea || !autoResize) return;
|
|
8323
8323
|
const adjustHeight = () => {
|
|
8324
8324
|
textarea.style.height = "auto";
|
|
8325
|
-
textarea.style.height = asInput && !textarea.value
|
|
8325
|
+
textarea.style.height = asInput && !textarea.value ? "22px" : `${textarea.scrollHeight}px`;
|
|
8326
8326
|
};
|
|
8327
8327
|
adjustHeight();
|
|
8328
8328
|
textarea.addEventListener("input", adjustHeight);
|
package/dist/index.mjs
CHANGED
|
@@ -8279,7 +8279,7 @@ var TextArea = React25.forwardRef(
|
|
|
8279
8279
|
if (!textarea || !autoResize) return;
|
|
8280
8280
|
const adjustHeight = () => {
|
|
8281
8281
|
textarea.style.height = "auto";
|
|
8282
|
-
textarea.style.height = asInput && !textarea.value
|
|
8282
|
+
textarea.style.height = asInput && !textarea.value ? "22px" : `${textarea.scrollHeight}px`;
|
|
8283
8283
|
};
|
|
8284
8284
|
adjustHeight();
|
|
8285
8285
|
textarea.addEventListener("input", adjustHeight);
|
package/package.json
CHANGED
|
Binary file
|