Grid Selection 2: Strip out custom selection & use GridSelection (#1453)

* Wire up grid selection

* Fix imports
This commit is contained in:
Tyler Bainbridge
2022-03-15 14:49:26 -04:00
committed by acywatson
parent 1d1959748d
commit d56339371a
13 changed files with 351 additions and 247 deletions

View File

@ -106,7 +106,10 @@ export default function TablePlugin(): React$Node {
});
} else if (mutation === 'destroyed') {
const tableSelection = tableSelections.get(nodeKey);
if (tableSelection) tableSelection.removeListeners();
if (tableSelection) {
tableSelection.removeListeners();
tableSelections.delete(nodeKey);
}
}
}
});