Skip to content

Commit 43a016b

Browse files
authored
docs(useDrag): style overflow auto (#2443)
1 parent 6b68cca commit 43a016b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/hooks/src/useDrop/demo/demo1.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ export default () => {
7070
{isHovering ? 'release here' : 'drop here'}
7171
</div>
7272

73-
<div style={{ display: 'flex', marginTop: 8 }}>
74-
{['1', '2', '3', '4', '5'].map((e, i) => (
73+
<div style={{ display: 'flex', marginTop: 8, overflow: 'auto' }}>
74+
{['1', '2', '3', '4', '5'].map((e) => (
7575
<DragItem key={e} data={e} />
7676
))}
7777
</div>

0 commit comments

Comments
 (0)