react-touch
react-touch copied to clipboard
Unknown prop `__passThrough` being added to Children
Sample code from our codebase
<Swipeable onSwipeLeft={this.moveCarouselPrevious} onSwipeRight={this.moveCarouselPrevious}>
<ul className={`${this.props.listType}-list`} ref="list" style={computedStyle}>
{Children}
</ul>
</Swipeable>
Same here
when I have the children elements in the Swipleable I get the error
<Swipeable config={swipe} onSwipeLeft={this.checkSwipe}>
<div>...</div>
</Swipeable>
but when I move the children to a dumb component
checkSwipe() {
console.log('swipe');
}
<Swipeable config={swipe} onSwipeLeft={this.checkSwipe}>
<CommerceList />
</Swipeable>
It removes the error but I can't log the swipe event.
+1
Hey all, I haven't had a chance to look at this codebase all month since my wife and I have welcomed a newborn to the family. I'll try to make some time this week. PRs are welcome as well!