mirror of
https://github.com/facebook/lexical.git
synced 2025-08-06 16:39:33 +08:00
Grid Selection 2: Strip out custom selection & use GridSelection (#1453)
* Wire up grid selection * Fix imports
This commit is contained in:

committed by
acywatson

parent
1d1959748d
commit
d56339371a
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user