Skip to content

Commit 1b98c96

Browse files
fix disappearing arrow when using drag/drop feature
1 parent 793d366 commit 1b98c96

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/Layout/ScrollCardsNavigator.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export const ScrollCardsNavigator = () => {
3434
}, [])
3535

3636
useLayoutEffect(() => {
37+
setLeftButtonVisible(false)
3738
scrollBarContainer.current = document.querySelector('.Cards')
3839
}, [])
3940

@@ -48,7 +49,6 @@ export const ScrollCardsNavigator = () => {
4849
}, [handleKeyboardKeys])
4950

5051
useEffect(() => {
51-
setLeftButtonVisible(false)
5252
setRightButtonVisible(cards.length > maxCardsPerRow)
5353
}, [cards])
5454

0 commit comments

Comments
 (0)