File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/components/form-textarea Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -173,11 +173,11 @@ export const BFormTextarea = /*#__PURE__*/ Vue.extend({
173
173
// Get the current style height (with `px` units)
174
174
const oldHeight = getStyle ( el , 'height' ) || computedStyle . height
175
175
// Probe scrollHeight by temporarily changing the height to `auto`
176
- setStyle ( el , 'auto' )
176
+ setStyle ( el , 'height' , ' auto')
177
177
const scrollHeight = el . scrollHeight
178
178
// Place the original old height back on the element, just in case `computedProp`
179
179
// returns the same value as before
180
- setStyle ( el , oldHeight )
180
+ setStyle ( el , 'height' , oldHeight )
181
181
182
182
// Calculate content height in 'rows' (scrollHeight includes padding but not border)
183
183
const contentRows = mathMax ( ( scrollHeight - padding ) / lineHeight , 2 )
You can’t perform that action at this time.
0 commit comments