Repository navigation
Conversation
|
Works for me 👍 |
| // Hide the dropdown so there is no flicker until $timeout is done executing. | ||
| if ($select.search === '' && !opened) { | ||
| dropdown[0].style.opacity = 0; | ||
| opened = true; |
There was a problem hiding this comment.
@rpocklin Does opened never need to be reset to false?
There was a problem hiding this comment.
Not that i've found, since it's already been rendered once - AFAIK the opacity change was for the initial render only.
|
@rpocklin thanks for the fix, it's very helpful, I ported it to my fork, since I need to integrate it, and I'm having one note: |
|
@Yurko-Fedoriv not sure you know what you're doing here. You're adding a variable under a function declaration. My version is not using global scope, its within the directive in the |
|
ah, sorry, nvm, I somehow missed outer declaration. |
Remove flicker on search but preserve original hide when dropdown not visible