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({
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 )
You can’t perform that action at this time.
0 commit comments