Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit ca4d09e

Browse files
committed
fix(positioning): stop flicker when closed
When the dropdown is in an up position and it is closed we were removing the positioning before hiding it which caused a flicker while it moved down to it's natural bottom position. This change sets the opacity to 0 before resetting the positioning style attributes.
1 parent aa90dd8 commit ca4d09e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/uiSelectDirective.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,7 @@ uis.directive('uiSelect',
383383
}
384384

385385
// Reset the position of the dropdown.
386+
dropdown[0].style.opacity = 0;
386387
dropdown[0].style.position = '';
387388
dropdown[0].style.top = '';
388389
element.removeClass(directionUpClassName);

0 commit comments

Comments
 (0)