Update isChangedContents in translate panel
This commit is contained in:
parent
6c3c75b59c
commit
4028acda0c
|
@ -56,7 +56,8 @@ export default class TranslatePanel extends Component {
|
||||||
componentWillReceiveProps = nextProps => {
|
componentWillReceiveProps = nextProps => {
|
||||||
const isChangedContents =
|
const isChangedContents =
|
||||||
this.props.resultText !== nextProps.resultText ||
|
this.props.resultText !== nextProps.resultText ||
|
||||||
this.props.candidateText !== nextProps.candidateText;
|
this.props.candidateText !== nextProps.candidateText ||
|
||||||
|
this.props.position !== nextProps.position;
|
||||||
|
|
||||||
if (isChangedContents && nextProps.shouldShow) this.setState({ shouldResize: true });
|
if (isChangedContents && nextProps.shouldShow) this.setState({ shouldResize: true });
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue