Prevent IE from generating unwanted clicks on the body. When mousedown fires on the selection element and then mouseup fires on the mask (because it is moved under the mouse during mousedown) then IE fires a click event on the body because it is the closest common ancestor. To prevent this, we detach and reatach the elements on mousedown which cancels the click event.
Prevent IE from generating unwanted clicks on the body. When mousedown fires on the selection element and then mouseup fires on the mask (because it is moved under the mouse during mousedown) then IE fires a click event on the body because it is the closest common ancestor. To prevent this, we detach and reatach the elements on mousedown which cancels the click event.

thiagocarlossilverio/select2,thiagocarlossilverio/select2,taf2/select2,theyec/select2,nopash/select2,ibrahimyu/select2,CodingJoker/select2,khallaghi/select2,monobasic/select2,megahallon/select2,keitler/select2,lewis-ing/select2,bottomline/select2,InteractiveIntelligence/select2,Restless-ET/select2,iestruch/select2,alexlondon07/select2,jiawenbo/select2,ianawilson/select2,select2/select2,megahallon/select2,fashionsun/select2,ZaArsProgger/select2,shuai959980629/select2,Burick/select2,myactionreplay/select2,sujonvidia/select2,od3n/select2,tb/select2,IntelliTect/select2,NabiKAZ/select2,azotos/select2,binary-koan/select2,chungth/select2,stretch4x4/select2,trileuco/select2,Burick/select2,perdona/select2,jkgroupe/select2,myactionreplay/select2,jdecuyper/select2,Currency-One/select2-v4,od3n/select2,tzellman/select2,gitkiselev/select2,fk/select2,ZaArsProgger/select2,keitler/select2,farzak/select2,brees01/select2,select2/select2,gianndall/select2,alexlondon07/select2,slowcolor/select2,AhmedMoosa/select2,sitexa/select2,blackbricksoftware/select2,binaryvo/select2,merutak/select2,chungth/select2,lisong521/select2,mizalewski/select2,sitexa/select2,ibrahimyu/select2,UziTech/select2,zhangwei900808/select2,openbizgit/select2,blackbricksoftware/select2,taf2/select2,kartik-v/select2,monobasic/select2,qq645381995/select2,fsw/select2,ianawilson/select2,matixmatix/select2,merutak/select2,afelixnieto/select2,jiawenbo/select2,Restless-ET/select2,tzellman/select2,openbizgit/select2,theyec/select2,fashionsun/select2,murb/select2,azotos/select2,shuai959980629/select2,zhaoyan158567/select2,marcoheyrex/select2,stretch4x4/select2,BenJenkinson/select2,matixmatix/select2,riiiiizzzzzohmmmmm/select2,afelixnieto/select2,marcoheyrex/select2,binary-koan/select2,zhaoyan158567/select2,Currency-One/select2-v4,vgrish/select2,lisong521/select2,riiiiizzzzzohmmmmm/select2,vgrish/select2,ForeverPx/select2,CodingJoker/select2,Youraiseme/select2,laborautonomo/select2,adrianpietka/select2,brees01/select2,AhmedMoosa/select2,MAubreyK/select2,slowcolor/select2,adrianpietka/select2,jkgroupe/select2,sujonvidia/select2,inway/select2,Youraiseme/select2,mizalewski/select2,RickMeasham/select2,LockonZero/select2,AnthonyDiSanti/select2,khallaghi/select2,farzak/select2,ForeverPx/select2,xtrepo/select2,jdecuyper/select2,zhangwei900808/select2,18098924759/select2,gianndall/select2,loogart/select2,bottomline/select2,gitkiselev/select2,trileuco/select2,iestruch/select2,inway/select2,nikolas/select2,perdona/select2,michael-brade/select2,213736015/s2,goodwall/select2,fk/select2,213736015/s2,fsw/select2,NabiKAZ/select2,murb/select2,michael-brade/select2,tb/select2,LockonZero/select2,jlgarciakitmaker/select2,UziTech/select2,laborautonomo/select2,BenJenkinson/select2,InteractiveIntelligence/select2,binaryvo/select2,kahwee/select2,RickMeasham/select2,syndbg/select2,MAubreyK/select2,AnthonyDiSanti/select2,loogart/select2,nikolas/select2,IntelliTect/select2,lewis-ing/select2,kahwee/select2,nopash/select2,xtrepo/select2,qq645381995/select2,jlgarciakitmaker/select2,syndbg/select2,goodwall/select2,18098924759/select2