Skip to content

Commit 852f58e

Browse files
Inbal-Tishethanshar
authored andcommitted
adding height to avoid shake as a result of content height change (#367)
* adding height to avoid shake as a result of content height change * fix to minHeight
1 parent 36f8602 commit 852f58e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/inputs/TextField.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,7 @@ export default class TextField extends BaseInput {
477477
this.styles.input,
478478
hideUnderline && this.styles.inputWithoutUnderline,
479479
typography,
480+
{minHeight: typography.lineHeight},
480481
color && {color},
481482
// with the right flex on the tree hierarchy we might not need this
482483
// {height: this.getHeight()},
@@ -527,7 +528,8 @@ export default class TextField extends BaseInput {
527528
this.styles.innerContainer,
528529
hideUnderline && this.styles.innerContainerWithoutUnderline,
529530
{borderColor: underlineStateColor},
530-
{paddingTop: this.getTopPaddings()}]}
531+
{paddingTop: this.getTopPaddings()}
532+
]}
531533
>
532534
{this.renderPlaceholder()}
533535
{expandable ? this.renderExpandableInput() : this.renderTextInput()}

0 commit comments

Comments
 (0)