From 03c9bfde19af139ca56ddcfb6e3f42f53b00c28a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomek=20Przyby=C5=82?= Date: Thu, 24 Oct 2019 13:28:27 +0200 Subject: [PATCH] fix: align text to center in multiline TextInput (#1408) --- src/components/TextInput/TextInputFlat.tsx | 2 +- src/components/TextInput/TextInputOutlined.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/TextInput/TextInputFlat.tsx b/src/components/TextInput/TextInputFlat.tsx index efec4c2795..97bdcceb1a 100644 --- a/src/components/TextInput/TextInputFlat.tsx +++ b/src/components/TextInput/TextInputFlat.tsx @@ -261,7 +261,7 @@ class TextInputFlat extends React.Component { fontSize, fontWeight, color: inputTextColor, - textAlignVertical: multiline && height ? 'top' : 'center', + textAlignVertical: multiline ? 'top' : 'center', }, ], })} diff --git a/src/components/TextInput/TextInputOutlined.tsx b/src/components/TextInput/TextInputOutlined.tsx index db66eba590..4f7d90e27f 100644 --- a/src/components/TextInput/TextInputOutlined.tsx +++ b/src/components/TextInput/TextInputOutlined.tsx @@ -238,7 +238,7 @@ class TextInputOutlined extends React.Component { fontSize, fontWeight, color: inputTextColor, - textAlignVertical: multiline && height ? 'top' : 'center', + textAlignVertical: multiline ? 'top' : 'center', }, ], } as RenderProps)}