Fixed: Select all selecting hidden items

Co-Authored-By: Mark McDowall <markus101@users.noreply.github.com>
pull/504/head
Qstick 6 years ago
parent 78a0b5f8b7
commit 510439570e

@ -20,6 +20,15 @@ class TableSelectCell extends Component {
onSelectedChange({ id, value: isSelected });
}
componentWillUnmount() {
const {
id,
onSelectedChange
} = this.props;
onSelectedChange({ id, value: null });
}
//
// Listeners

@ -9,6 +9,10 @@ function toggleSelected(state, items, id, selected, shiftKey) {
[id]: selected
};
if (selected == null) {
delete selectedState[id];
}
if (shiftKey && lastToggled) {
const { lower, upper } = getToggledRange(items, id, lastToggled);

Loading…
Cancel
Save