diff --git a/src/ui/components/common/TextInput.tsx b/src/ui/components/common/TextInput.tsx index b5c2ee9..607c111 100644 --- a/src/ui/components/common/TextInput.tsx +++ b/src/ui/components/common/TextInput.tsx @@ -30,10 +30,6 @@ export default class TextInput extends React.Component { } } - static getDerivedStateFromProps(props: IProps, state: IState) { - return { value: props.value || '' } - } - async componentDidMount() { if (this.props.initalValue) { this.setState({ @@ -42,6 +38,10 @@ export default class TextInput extends React.Component { } } + static getDerivedStateFromProps(props: IProps, state: IState) { + return { value: props.value || state.value } + } + render() { return (
diff --git a/src/ui/components/news/NewsSection.css b/src/ui/components/news/NewsSection.css index 104178f..57c4dd6 100644 --- a/src/ui/components/news/NewsSection.css +++ b/src/ui/components/news/NewsSection.css @@ -65,7 +65,7 @@ scrollbar-width: none; } -.NewsContent tbody::-webkit-scrollbar { +.NewsContent tbody::-webkit-scrollbar { display: none; } @@ -94,4 +94,4 @@ -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 5px; -} +} \ No newline at end of file