>(
+ new Set(['center'])
+ );
return (
<>
- Current selection (controlled): {[selected]}
+ Current selection (controlled): {[...selected].join(', ')}
>
);
},
};
export const MultiSelection: Story = {
- render: args => {
+ render: () => {
const [selectedKeys, setSelected] = useState(new Set());
const selected = Array.from(selectedKeys);
@@ -154,7 +154,6 @@ export const MultiSelection: Story = {
selectionMode="multiple"
selectedKeys={selectedKeys as Iterable}
onSelectionChange={key => setSelected(new Set(key))}
- {...args}
>
🍔 Burger
🍕 Pizza
diff --git a/packages/components/src/Overlay/Overlay.stories.tsx b/packages/components/src/Overlay/Overlay.stories.tsx
index 77f52889b9..4721a593e1 100644
--- a/packages/components/src/Overlay/Overlay.stories.tsx
+++ b/packages/components/src/Overlay/Overlay.stories.tsx
@@ -19,7 +19,7 @@ const TestTray = forwardRef(
({ open }, ref) => {
return (
<>
-
+