@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 +1 -1
- package/src/core/inputs.mjs +1 -1
package/package.json
CHANGED
package/src/core/inputs.mjs
CHANGED
|
@@ -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
|
}
|