Open
Description
Provide a general summary of the feature here
I'd like equivalents of add
and remove
methods for selection.
😯 Current Behavior
Manual implementation like
let nextSelected = new Set(list.selectedKeys);
if (list.selectedKeys === "all") {
nextSelected = new Set(initialItems.map((metric) => metric.id));
}
nextSelected.delete(metric.id);
list.setSelectedKeys(nextSelected);