diff options
| author | Mark Otto <[email protected]> | 2016-11-27 22:29:33 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2016-11-27 22:29:33 -0800 |
| commit | 5db88075c1dbdf55f2ae4a11d79bd2c3b8d65d43 (patch) | |
| tree | 2590d95f94a7ec3933fcf70a8acbcc31aef13fd6 /js/src | |
| parent | 1562a2db4ca973c56e8d353f98ea85bd9ef81329 (diff) | |
| parent | 54908a95a87b592d81df3231823979c75917d57a (diff) | |
| download | bootstrap-5db88075c1dbdf55f2ae4a11d79bd2c3b8d65d43.tar.xz bootstrap-5db88075c1dbdf55f2ae4a11d79bd2c3b8d65d43.zip | |
Merge branch 'v4-dev' of https://github.com/twbs/bootstrap into v4-dev
Diffstat (limited to 'js/src')
| -rw-r--r-- | js/src/scrollspy.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/scrollspy.js b/js/src/scrollspy.js index 9b39acd36..9cb1438ca 100644 --- a/js/src/scrollspy.js +++ b/js/src/scrollspy.js @@ -221,7 +221,7 @@ const ScrollSpy = (($) => { return } - if (this._activeTarget && scrollTop < this._offsets[0]) { + if (this._activeTarget && scrollTop < this._offsets[0] && this._offsets[0] > 0) { this._activeTarget = null this._clear() return |
