@bunnix/components 0.11.1 → 0.11.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bunnix/components",
3
- "version": "0.11.1",
3
+ "version": "0.11.2",
4
4
  "description": "Bunnix components: a set of bunnix ready components for modern web apps.",
5
5
  "keywords": [
6
6
  "bunnix",
@@ -149,6 +149,7 @@ function getTextAreaVerticalInset(node) {
149
149
  function resizeTextArea(node, minLines, maxLines) {
150
150
  if (!node) return;
151
151
 
152
+ node.style.height = "auto";
152
153
  const metrics = getTextAreaHeightMetrics({
153
154
  lineHeight: getLineHeightPx(node),
154
155
  scrollHeight: node.scrollHeight,
@@ -157,7 +158,6 @@ function resizeTextArea(node, minLines, maxLines) {
157
158
  verticalInset: getTextAreaVerticalInset(node),
158
159
  });
159
160
 
160
- node.style.height = "auto";
161
161
  node.style.height = `${metrics.nextHeight}px`;
162
162
  node.style.overflowY = metrics.shouldScroll ? "auto" : "hidden";
163
163
  }