Replies: 1 comment
-
The problem wasn't the forwardRef it was that custom style that I passed the div. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've created custom navigation buttons and everyting seems to work fine except for the
watchOverflow
, when using ref directly from the component instead of using forward ref thewatchOverflow
seems to work fine.The two examples are the same except that in the first I use forwardRef and in the second I use the ref directly insde the component.
The navigation works in both cases only the
watchOverflow
doesn't.using forward ref (doesn't work):
PrevButton.tsx:
Using ref directly (works):
Beta Was this translation helpful? Give feedback.
All reactions