From 44473707648f1fffcb4b6af8d0a83d3c38692e9d Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 8 Apr 2020 10:19:52 +0100 Subject: [PATCH] Fix composer placeholder not updating Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/components/views/rooms/BasicMessageComposer.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/views/rooms/BasicMessageComposer.js b/src/components/views/rooms/BasicMessageComposer.js index 5b597e1999..e3cffd59f8 100644 --- a/src/components/views/rooms/BasicMessageComposer.js +++ b/src/components/views/rooms/BasicMessageComposer.js @@ -94,8 +94,7 @@ export default class BasicMessageEditor extends React.Component { this._emoticonSettingHandle = null; } - // TODO: [REACT-WARNING] Move into better lifecycle position - UNSAFE_componentWillUpdate(prevProps) { // eslint-disable-line camelcase + componentDidUpdate(prevProps) { if (this.props.placeholder !== prevProps.placeholder && this.props.placeholder) { const {isEmpty} = this.props.model; if (isEmpty) {