@norges-domstoler/dds-components 0.0.0-dev-20250620121229 → 0.0.0-dev-20250623090038

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.js CHANGED
@@ -7578,7 +7578,9 @@ var TextArea = ({
7578
7578
  const [text, setText] = (0, import_react55.useState)(getDefaultText(value, defaultValue));
7579
7579
  (0, import_react55.useEffect)(() => {
7580
7580
  if (textAreaRef == null ? void 0 : textAreaRef.current) {
7581
- textAreaRef.current.style.height = `${textAreaRef.current.scrollHeight + 2}px`;
7581
+ const el = textAreaRef.current;
7582
+ el.style.height = "auto";
7583
+ el.style.height = `${el.scrollHeight + 2}px`;
7582
7584
  }
7583
7585
  }, [text]);
7584
7586
  const onChangeHandler = (event) => {