Skip to content

Commit bf7a65f

Browse files
committed
fix(b-form-textarea): setStyle() util usage
1 parent 390a5c7 commit bf7a65f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/form-textarea/form-textarea.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,11 @@ export const BFormTextarea = /*#__PURE__*/ Vue.extend({
173173
// Get the current style height (with `px` units)
174174
const oldHeight = getStyle(el, 'height') || computedStyle.height
175175
// Probe scrollHeight by temporarily changing the height to `auto`
176-
setStyle(el, 'auto')
176+
setStyle(el, 'height', 'auto')
177177
const scrollHeight = el.scrollHeight
178178
// Place the original old height back on the element, just in case `computedProp`
179179
// returns the same value as before
180-
setStyle(el, oldHeight)
180+
setStyle(el, 'height', oldHeight)
181181

182182
// Calculate content height in 'rows' (scrollHeight includes padding but not border)
183183
const contentRows = mathMax((scrollHeight - padding) / lineHeight, 2)

0 commit comments

Comments
 (0)