akiran / akiran/react-slick

ChildNodes undefined

Open
#1,488 1 comment 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
11.9k
Forks
2.1k
PR merge metrics
No merged PRs in 30d

Description

For some reason, upon rendering the Slider component using Jest + Enzyme the following errors occur:

![screenshot 2019-01-22 at 10 29 36](https://user-images.githubusercontent.com/8352927/51529810-c9419b80-1e39-11e9-9e26-a55fc1a14a69.png)
![screenshot 2019-01-22 at 10 29 50](https://user-images.githubusercontent.com/8352927/51529811-c9419b80-1e39-11e9-9637-529e2c9f041b.png)
![screenshot 2019-01-22 at 10 30 04](https://user-images.githubusercontent.com/8352927/51529812-c9419b80-1e39-11e9-813d-ff6bdaaee30b.png)

this occurs in the following file src>utils>innerSliderUtils.js:726

` targetSlide = trackElem && trackElem.childNodes[targetSlideIndex];`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.