diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2018-04-12 15:49:59 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2018-04-16 11:59:29 +0200 |
| commit | f43e73296676201a46958f37a728a4c4604beeab (patch) | |
| tree | 06e9dac6e1b936ae50bd950a42b971db920802fc /app | |
| parent | d6f07449a13537b6f7d778b84f0394c53978b900 (diff) | |
| download | mullvadvpn-f43e73296676201a46958f37a728a4c4604beeab.tar.xz mullvadvpn-f43e73296676201a46958f37a728a4c4604beeab.zip | |
Re-render Accordion on children prop change
Diffstat (limited to 'app')
| -rw-r--r-- | app/components/Accordion.js | 3 |
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) { |
