FIX: _.include is no longer imported from lodash

Instead use toArray and indexOf which is also clearer
This commit is contained in:
Sam Saffron 2019-05-17 08:58:39 +10:00
parent fd1ae16f3b
commit 25137554ed

View File

@ -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;
}