Closed ericklarsen closed 3 years ago
@ericklarsen i added the second param as the original code had a typo.. i wanted to clean the typo but keep backwards compatibility.. if your getting the warning its because as the warning says your using the old typo prop which will be removed in the next major version update.. just change to using the one without the typo to remove the warnings :)
removing the typo prop is easy but i am sure it will lead to may users facing errors or incorrect functionality.. we want to clean up the typo but at the same time do it in a versioned manner to maintain compatibility.. fixing a typo does not justify a major version release.. hope you understand :)
i am confused.. you should not be getting warning for partialVisible
; this is a mistake..
it should only show for partialVisble
I will need to investigate this!
@ericklarsen although the warning says partialVisible
needs to be corrected.. the if condition is correct... it is on the typo param that will be deprecated in the future.. so you need to pass correct the param passed.. partialVisble partialVisible
@ericklarsen @YIZHUANG this issue can be closed!
Thank guys!
Hi guys, i get some warning like this when I use partialVisible props. How to fix it?
And i was trying to look at the types.d.ts file from react-multi-carousel and I found this.
Why are there 2 parameters with the name PartialVisible? And one of them looks like a typo
Expected behavior The warning is gone