material icon indicating copy to clipboard operation
material copied to clipboard

ng-cloak not working with md-autocomplete

Open NicolasBlois opened this issue 11 years ago • 9 comments

Slow motion gif (it only happens at the first click, to reproduce refresh the page and click again) : ezgif-3858551348

Normal speed gif : telechargement

NicolasBlois avatar Oct 15 '15 16:10 NicolasBlois

Ah HAH! There it is. Thx @blootch. We will investigate...

ThomasBurleson avatar Oct 15 '15 17:10 ThomasBurleson

@kseamon As far as I can tell, this is related to Virtual Repeater. Can you take a look?

robertmesserle avatar Oct 27 '15 18:10 robertmesserle

The repeater does some stuff asynchronously at startup. Is this talking about an autocomplete inside of ng-cloak or row item templates containing ng-cloak?

kseamon avatar Oct 27 '15 18:10 kseamon

So basically what happens on the first focus:

  • the DOM element is shown via ng-show
  • the matches array is populated with a list of items to display

However, we see a flicker of the templates showing {{item.display}}

robertmesserle avatar Oct 27 '15 19:10 robertmesserle

@kseamon Assigning to you for now. Please kick back to me if it isn't fixable within virtual repeater.

robertmesserle avatar Oct 27 '15 21:10 robertmesserle

Looks like this issue A) has nothing to do with ng-cloak, and B) only a bit to do with virtual-repeat.

The real problem is MdAutocompleteItemScopeDirective. Thus far, commenting it out fixes the issue. I'll try to fix it, but do we really even need it @robertmesserle ?

kseamon avatar Nov 09 '15 20:11 kseamon

@kseamon I'll sync up with @topherfangio to figure out what we can do about this - I thought I checked that, but apparently I missed something. Reassigning to me.

robertmesserle avatar Nov 09 '15 21:11 robertmesserle

Have a look at #5637

kseamon avatar Nov 09 '15 21:11 kseamon

@robertmesserle Any reason for the milestone delay? My PR that fixes this has been pending for a week or two now.

kseamon avatar Nov 25 '15 16:11 kseamon