Skip to content

Commit

Permalink
Use $(document).find(selector) to avoid case in twbs#20184
Browse files Browse the repository at this point in the history
  • Loading branch information
pvdlg committed Jan 17, 2017
1 parent 396cba4 commit ff74108
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/util.js
Expand Up @@ -116,7 +116,7 @@ const Util = (($) => {
selector = element.getAttribute('href') || ''
}
try {
return $(selector)
return $(document).find(selector)
} catch (err) {
return $()
}
Expand Down

0 comments on commit ff74108

Please sign in to comment.