Skip to content

Commit 7e4bd57

Browse files
committed
fix overflow on useDrop page
1 parent 7f70e99 commit 7e4bd57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/dev/s2-docs/pages/react-aria/useDrop.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ function DropTarget() {
198198
);
199199
}
200200
return (
201-
<div {...dropProps} role="button" tabIndex={0} ref={ref} className={`droppable grid ${isDropTarget ? 'target' : ''}`}>
201+
<div {...dropProps} role="button" tabIndex={0} ref={ref} className={`droppable grid ${isDropTarget ? 'target' : ''}`} style={{overflow: 'auto'}}>
202202
{contents}
203203
</div>
204204
);
@@ -309,7 +309,7 @@ function DropTarget() {
309309
onDrop: onEvent
310310
});
311311
return (
312-
<ul {...dropProps} role="button" tabIndex={0} ref={ref} className={`droppable ${isDropTarget ? 'target' : ''}`} style={{display: 'block', width: 'auto'}}>
312+
<ul {...dropProps} role="button" tabIndex={0} ref={ref} className={`droppable ${isDropTarget ? 'target' : ''}`} style={{display: 'block', width: 'auto', overflow: 'auto'}}>
313313
{events.map((e, i) => <li key={i}>{e}</li>)}
314314
</ul>
315315
);

0 commit comments

Comments
 (0)