summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2018-04-16 12:00:20 +0200
committerAndrej Mihajlov <and@mullvad.net>2018-04-16 12:00:20 +0200
commitc9f2ec62790a62e674b1252a6a18dec451d17bf3 (patch)
tree06e9dac6e1b936ae50bd950a42b971db920802fc
parentd6f07449a13537b6f7d778b84f0394c53978b900 (diff)
parentf43e73296676201a46958f37a728a4c4604beeab (diff)
downloadmullvadvpn-c9f2ec62790a62e674b1252a6a18dec451d17bf3.tar.xz
mullvadvpn-c9f2ec62790a62e674b1252a6a18dec451d17bf3.zip
Merge branch 'accordion-children-patch'
-rw-r--r--app/components/Accordion.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/components/Accordion.js b/app/components/Accordion.js
index 116d257a40..3f2ceb1a06 100644
--- a/app/components/Accordion.js
+++ b/app/components/Accordion.js
@@ -49,7 +49,8 @@ export default class Accordion extends Component<AccordionProps, AccordionState>
shouldComponentUpdate(nextProps: AccordionProps, nextState: AccordionState) {
return nextState.animatedValue !== this.state.animatedValue ||
- nextProps.height !== this.props.height;
+ nextProps.height !== this.props.height ||
+ nextProps.children !== this.props.children;
}
componentDidUpdate(prevProps: AccordionProps, _prevState: AccordionState) {