carbon-react 142.13.4 → 142.13.5

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.
@@ -117,6 +117,8 @@ const Textarea = /*#__PURE__*/React.forwardRef(({
117
117
  }
118
118
  const scrollPosition = scrollElement?.scrollTop;
119
119
 
120
+ // Reset height to allow shrinking when lines are removed
121
+ textarea.style.height = "auto";
120
122
  // Set the height so all content is shown
121
123
  textarea.style.height = `${Math.max(textarea.scrollHeight, textareaMinHeight)}px`;
122
124
  if (scrollElement && scrollPosition) {
@@ -126,6 +126,8 @@ const Textarea = exports.OriginalTextarea = exports.Textarea = /*#__PURE__*/_rea
126
126
  }
127
127
  const scrollPosition = scrollElement?.scrollTop;
128
128
 
129
+ // Reset height to allow shrinking when lines are removed
130
+ textarea.style.height = "auto";
129
131
  // Set the height so all content is shown
130
132
  textarea.style.height = `${Math.max(textarea.scrollHeight, textareaMinHeight)}px`;
131
133
  if (scrollElement && scrollPosition) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-react",
3
- "version": "142.13.4",
3
+ "version": "142.13.5",
4
4
  "description": "A library of reusable React components for easily building user interfaces.",
5
5
  "files": [
6
6
  "lib",