Closed yaodingyd closed 6 years ago
thanks a lot for doing this @yaodingyd I'll take a look over it today and get back to you.
@yaodingyd looks good to me, thanks for your work on this. We probably need to update the CI to install react
and react-dom
manually now that they're peer dependencies. If you could update .travis.yml
with something like the following then I'll merge this and push a new version
install:
- npm install
- npm install react react-dom
https://docs.travis-ci.com/user/customizing-the-build/#Customizing-the-Installation-Step
@theolampert Thanks! CI is updated.
This is mainly a implementation refactor with portal.
Additionally, there are some other changes:
jsnext:main
entryupdateSelected
in index.js, as 1) parent component can use Flickity ref to get selectedIndex 2) the internal state involved has no actual usage 3) this also triggers an unnecessary renderonSwipe
prop as all events can and should be registered in parent component