From fabe26ce50c595c3ab5757eb9aa079dbdbf7516f Mon Sep 17 00:00:00 2001 From: Rafael Date: Tue, 3 Aug 2021 15:04:53 -0300 Subject: [PATCH] fixes hidden elem again --- src/components/TextInputAutoWidth.js | 18 ++++++++++-------- src/styles/styles.js | 3 +-- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/src/components/TextInputAutoWidth.js b/src/components/TextInputAutoWidth.js index 9dbc83537cd..18a04bb9e33 100644 --- a/src/components/TextInputAutoWidth.js +++ b/src/components/TextInputAutoWidth.js @@ -42,13 +42,15 @@ class TextInputAutoWidth extends React.Component { render() { const propsWithoutStyles = _.omit(this.props, ['inputStyle', 'textStyle']); return ( - - + <> + + + {/* Text input component doesn't support auto grow by default. We're using a hidden text input to achieve that. @@ -61,7 +63,7 @@ class TextInputAutoWidth extends React.Component { > {this.props.value || this.props.placeholder} - + ); } } diff --git a/src/styles/styles.js b/src/styles/styles.js index 146c81e5dd8..dfb8bf45040 100644 --- a/src/styles/styles.js +++ b/src/styles/styles.js @@ -1702,11 +1702,10 @@ const styles = { }, hiddenElementOutsideOfWindow: { - position: 'fixed', + position: 'absolute', top: 0, left: 0, opacity: 0, - transform: 'translateX(-100%)', }, growlNotificationWrapper: {