Update isChangedContents in translate panel

This commit is contained in:
sienori 2019-02-23 00:20:28 +09:00
parent 6c3c75b59c
commit 4028acda0c

View file

@ -56,7 +56,8 @@ export default class TranslatePanel extends Component {
componentWillReceiveProps = nextProps => {
const isChangedContents =
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 });
};