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

Commit 76bf9da

Browse files
committed
Merge pull request #1040 from hightower/bugfix/focus-on-activate
Use opacity, not visibility to hide element
2 parents 2d1422d + 58de0d7 commit 76bf9da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/uiSelectDirective.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ uis.directive('uiSelect',
262262
}
263263

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

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

279279
// Display the dropdown once it has been positioned.
280-
dropdown[0].style.visibility = '';
280+
dropdown[0].style.opacity = 1;
281281
});
282282
} else {
283283
if (dropdown === null) {

0 commit comments

Comments
 (0)