You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-14 19:02:33 +03:00
Fix composer placeholder not updating
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user