react-scrollspy
react-scrollspy copied to clipboard
Handling new props
_initFromProps () {
const targetItems = this._initSpyTarget(this.props.items)
...
}
componentWillReceiveProps () {
this._initFromProps()
}
this.props.items
are still the old items when calling _initFromProps
in componentWillReceiveProps
, so the component don't actually update.
I had to include jsdom
to handle document.getElementById
in the tests.
I'm having trouble with jsdom on Travis CI... any thoughts?
@rdiazv From the log of travis ci, it seems to be an issue with installing contextify that is a dependency of jsdom.
