From 4028acda0c87c62aab3b0a5ec1bd1aed188df90d Mon Sep 17 00:00:00 2001 From: sienori Date: Sat, 23 Feb 2019 00:20:28 +0900 Subject: [PATCH] Update isChangedContents in translate panel --- src/content/components/TranslatePanel.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/content/components/TranslatePanel.js b/src/content/components/TranslatePanel.js index aa784fc..5f76e03 100644 --- a/src/content/components/TranslatePanel.js +++ b/src/content/components/TranslatePanel.js @@ -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 }); };