From 877ef7fde3392881310081d45674922612ed59e0 Mon Sep 17 00:00:00 2001 From: Stanislaw Adaszewski Date: Thu, 16 Apr 2020 18:51:29 +0200 Subject: [PATCH] Added a workaround to WBAccordion so that it doesn't fold so easily. To be seen if this is fine in practice. --- frontend/src/js/widget/wb-accordion.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/js/widget/wb-accordion.js b/frontend/src/js/widget/wb-accordion.js index 7bd6d71..462b263 100644 --- a/frontend/src/js/widget/wb-accordion.js +++ b/frontend/src/js/widget/wb-accordion.js @@ -19,6 +19,8 @@ class WBAccordion extends Component { } componentWillReceiveProps(nextProps) { + if (JSON.stringify(nextProps.names) === JSON.stringify(this.props.names)) + return; this.props = nextProps; this.setupIds(); }