Skip to content

Commit b17090d

Browse files
committed
directly compare nodes instead of their IDs in search script
1 parent 67875c1 commit b17090d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/vendor/docsearch.bundle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151
function onSuggestionMouseDown (e) {
152152
var dropdown = this
153153
var suggestion = dropdown._getSuggestions().filter('#' + e.currentTarget.id)
154-
if (suggestion.attr('id') === dropdown._getCursor().attr('id')) return
154+
if (suggestion[0] === dropdown._getCursor()[0]) return
155155
dropdown._removeCursor()
156156
setTimeout(function () {
157157
dropdown._setCursor(suggestion, false)

0 commit comments

Comments
 (0)