Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion packages/@react-spectrum/list/stories/ListView.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,8 @@ export function DragIntoItemExample() {
);
}

export function DragBetweenListsExample() {
export function DragBetweenListsExample(props) {
let {list1Props, list2Props} = props;
let onDropAction = action('onDrop');

let list1 = useListData({
Expand Down Expand Up @@ -832,6 +833,7 @@ export function DragBetweenListsExample() {
<Flex direction="column" margin="size-100">
<Text alignSelf="center">List 1</Text>
<ListView
{...list1Props}
aria-label="First list view"
selectionMode="multiple"
width="300px"
Expand All @@ -849,6 +851,7 @@ export function DragBetweenListsExample() {
<Flex direction="column" margin="size-100">
<Text alignSelf="center">List 2</Text>
<ListView
{...list2Props}
aria-label="Second list view"
selectionMode="multiple"
width="300px"
Expand Down
Loading