partial mods to replace deprecated componentWillReceiveProps

This commit is contained in:
crockwave
2020-06-22 20:26:20 -05:00
parent 8a43cb3709
commit 3d29f7b6e2
12 changed files with 12 additions and 12 deletions

View File

@@ -56,7 +56,7 @@ class ModifierPickerMenu extends React.PureComponent {
this.props.onSelect(e.currentTarget.getAttribute('data-index') * 1);
}
componentWillReceiveProps(nextProps) {
componentDidUpdate(nextProps) {
if (nextProps.active) {
this.attachListeners();
} else {