Skip to content

Commit 4953779

Browse files
authored
Merge pull request #144 from zakariaboualaid/hotfix/disappearing-left-arrow
fix disappearing left arrow when using drag/drop feature when number of cards is 4+
2 parents 793d366 + 1b98c96 commit 4953779

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)