mirror of https://github.com/vector-im/riot-web
				
				
				
			Merge pull request #4361 from matrix-org/t3chguy/fix_composer_placeholder1
Fix composer placeholder not updatingpull/21833/head
						commit
						4d7f3ba109
					
				|  | @ -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) { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Michael Telatynski
						Michael Telatynski