react-slick: Warning: React does not recognize the `slideCount` prop on a DOM element.
Because of this line https://github.com/akiran/react-slick/blob/master/src/arrows.js#L35 I get errors with React 16.
What is the purpose of this? How it will help with a config like this:
nextArrow: (
<span>
<IconButton>
<FA icon={faChevronRight} />
</IconButton>
</span>
),
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 5
- Comments: 15 (1 by maintainers)
Commits related to this issue
- https://github.com/akiran/react-slick/issues/1195 — committed to wasdrfff/polotno by iPristine 3 years ago
You may use this as workaround:
Why is it closed? It’s a workaround, but not the solution. Why the library is injected props directly into the function’s/component’s output?
It did not work 😃 I tried like this:
The problem is that lib expects
nextArrow
to be an Element, and it clones it. So function does not work and lead to error.If you use typescript, following example worked for me.
Update, needed to do the following (version 0.27.13) to avoid the default button showing up.
(add some css to hide it)
@bohehe @kirill-konshin I’m running into seeing the button appear along my custom arrow with this fix, did you run into this at all?
When i do the following I don’t see the issue:
I’m facing this issue. I’ve tried the fix, but it doesn’t seem to work.
Any progress?