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 @@ -305,13 +305,13 @@ export class TextArea extends ResizeMixin(PatternMixin(InputFieldMixin(ThemableM
305
305
// position while resetting the textareas height. If the textarea had a large height, then removing its height
306
306
// will reset its height to the default of two rows. That might reduce the height of the page, and the
307
307
// browser might adjust the scroll position before we can restore the measured height of the textarea.
308
- inputField . style . display = 'block' ;
309
308
inputField . style . height = inputFieldHeight ;
310
309
311
310
// Fix the input element width so its scroll height isn't affected by host's disappearing scrollbars
312
311
input . style . maxWidth = inputWidth ;
313
312
314
313
// Clear the height of the textarea to allow measuring a reduced scroll height
314
+ input . style . alignSelf = 'flex-start' ;
315
315
input . style . height = 'auto' ;
316
316
}
317
317
this . _oldValueLength = valueLength ;
@@ -323,7 +323,7 @@ export class TextArea extends ResizeMixin(PatternMixin(InputFieldMixin(ThemableM
323
323
324
324
// Restore
325
325
input . style . removeProperty ( 'max-width' ) ;
326
- inputField . style . removeProperty ( 'display ' ) ;
326
+ input . style . removeProperty ( 'align-self ' ) ;
327
327
inputField . style . removeProperty ( 'height' ) ;
328
328
inputField . scrollTop = scrollTop ;
329
329
}
You can’t perform that action at this time.
0 commit comments