Explorar o código

Fix scroll caused by dropdown

lazything %!s(int64=10) %!d(string=hai) anos
pai
achega
b7f4731051
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/js/select2/dropdown/attachBody.js

+ 2 - 1
src/js/select2/dropdown/attachBody.js

@@ -47,7 +47,8 @@ define([
     $dropdown.addClass('select2-container--open');
 
     $dropdown.css({
-      position: 'absolute'
+      position: 'absolute',
+      top: -999999
     });
 
     $dropdown.width($container.outerWidth(false));