mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: _.include is no longer imported from lodash
Instead use toArray and indexOf which is also clearer
This commit is contained in:
parent
fd1ae16f3b
commit
25137554ed
@ -99,7 +99,13 @@ function positioningWorkaround($fixedElement) {
|
||||
};
|
||||
|
||||
var blurredNow = function(evt) {
|
||||
if (!done && _.include($(document.activeElement).parents(), fixedElement)) {
|
||||
if (
|
||||
!done &&
|
||||
$(document.activeElement)
|
||||
.parents()
|
||||
.toArray()
|
||||
.indexOf(fixedElement) > -1
|
||||
) {
|
||||
// something in focus so skip
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user