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

Use opacity, not visibility to hide element #1040

Merged
merged 1 commit into from
Jul 28, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/uiSelectDirective.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ uis.directive('uiSelect',
}

// Hide the dropdown so there is no flicker until $timeout is done executing.
dropdown[0].style.visibility = 'hidden';
dropdown[0].style.opacity = 0;

// Delay positioning the dropdown until all choices have been added so its height is correct.
$timeout(function(){
Expand All @@ -277,7 +277,7 @@ uis.directive('uiSelect',
}

// Display the dropdown once it has been positioned.
dropdown[0].style.visibility = '';
dropdown[0].style.opacity = 1;
});
} else {
if (dropdown === null) {
Expand Down