diff options
| -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) { |
