File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -155,13 +155,13 @@ export const TextAreaMixin = (superClass) =>
155
155
// position while resetting the textareas height. If the textarea had a large height, then removing its height
156
156
// will reset its height to the default of two rows. That might reduce the height of the page, and the
157
157
// browser might adjust the scroll position before we can restore the measured height of the textarea.
158
- inputField . style . display = 'block' ;
159
158
inputField . style . height = inputFieldHeight ;
160
159
161
160
// Fix the input element width so its scroll height isn't affected by host's disappearing scrollbars
162
161
input . style . maxWidth = inputWidth ;
163
162
164
163
// Clear the height of the textarea to allow measuring a reduced scroll height
164
+ input . style . alignSelf = 'flex-start' ;
165
165
input . style . height = 'auto' ;
166
166
}
167
167
this . _oldValueLength = valueLength ;
@@ -173,7 +173,7 @@ export const TextAreaMixin = (superClass) =>
173
173
174
174
// Restore
175
175
input . style . removeProperty ( 'max-width' ) ;
176
- inputField . style . removeProperty ( 'display ' ) ;
176
+ input . style . removeProperty ( 'align-self ' ) ;
177
177
inputField . style . removeProperty ( 'height' ) ;
178
178
inputField . scrollTop = scrollTop ;
179
179
}
You can’t perform that action at this time.
0 commit comments