Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
a97db648
Commit
a97db648
authored
10 years ago
by
Heinrich Fenkart
Browse files
Options
Download
Plain Diff
Merge pull request #14569 from twbs/scrollspy-ignore-invisible-targets
Scrollspy: ignore invisible list items
parents
40f889df
d15444d1
4 merge requests
!28721
Hot test
,
!16605
Test pull please ignore
,
!22103
test
,
!25326
Adjust examples
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
js/scrollspy.js
+1
-0
js/scrollspy.js
with
1 addition
and
0 deletions
+1
-0
js/scrollspy.js
+
1
-
0
View file @
a97db648
...
...
@@ -65,6 +65,7 @@
return
(
$href
&&
$href
.
length
&&
$href
.
is
(
'
:visible
'
)
&&
$el
.
is
(
'
:visible
'
)
&&
[[
$href
[
offsetMethod
]().
top
+
offsetBase
,
href
]])
||
null
})
.
sort
(
function
(
a
,
b
)
{
return
a
[
0
]
-
b
[
0
]
})
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets