From a4a344ca214632d965441acdd58b86dcf8bced1f Mon Sep 17 00:00:00 2001 From: Ben Regenspan Date: Tue, 24 Sep 2019 21:17:31 -0400 Subject: [PATCH 1/2] Reset checked items state upon prop update --- client/components/CheckboxList.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/components/CheckboxList.jsx b/client/components/CheckboxList.jsx index efc3e01e..f8b37a91 100644 --- a/client/components/CheckboxList.jsx +++ b/client/components/CheckboxList.jsx @@ -33,6 +33,8 @@ export default class CheckboxList extends PureComponent { this.setState({checkedItems}); this.informAboutChange(checkedItems); } + } else if (newProps.checkedItems !== this.props.checkedItems) { + this.setState({checkedItems: newProps.checkedItems}); } } From 2b685ede691f2f8c5b04e390daaf8f2f44af230a Mon Sep 17 00:00:00 2001 From: Vesa Laakso <482561+valscion@users.noreply.github.com> Date: Thu, 26 Sep 2019 09:54:47 +0300 Subject: [PATCH 2/2] Update changelog with checkbox fix --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ebdb5e87..dc466dbb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,9 @@ _Note: Gaps between patch versions are faulty, broken or test releases._ + * **Bug Fix** + * Fix sidebar not showing visibility status of chunks hidden via popup menu (issue [#316](https://github.com/webpack-contrib/webpack-bundle-analyzer/issues/316) by [@gaokun](https://github.com/gaokun), fixed in [#317](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/317) by [@bregenspan](https://github.com/bregenspan)) + ## 3.5.1 * **Bug Fix**