This repository was archived by the owner on Oct 2, 2019. It is now read-only.
This repository was archived by the owner on Oct 2, 2019. It is now read-only.
Dropdown flickering cause opacity set to 0 when filtering #1298
Closed
Description
Please see: http://plnkr.co/edit/erN0pTgEVxBrfJF4p9U7?p=preview
Use the select2 theme and type 'a' and then 'd' you will see that on each letter you type the drop filckers.
It appears that this is cause by line 1091
// Hide the dropdown so there is no flicker until $timeout is done executing.
dropdown[0].style.opacity = 0;
// Delay positioning the dropdown until all choices have been added so its height is correct.
$timeout(function(){
.
.
.
// Display the dropdown once it has been positioned.
dropdown[0].style.opacity = 1;
});
opacity should not change.