diff --git a/src/js/select2/dropdown/attachBody.js b/src/js/select2/dropdown/attachBody.js index ca41a9dc..352b0c67 100644 --- a/src/js/select2/dropdown/attachBody.js +++ b/src/js/select2/dropdown/attachBody.js @@ -195,7 +195,10 @@ define([ left: 0 }; - if ($.contains(document.body, $offsetParent[0]) || $offsetParent[0].isConnected) { + if ( + $.contains(document.body, $offsetParent[0]) || + $offsetParent[0].isConnected + ) { parentOffset = $offsetParent.offset(); }