material icon indicating copy to clipboard operation
material copied to clipboard

md-autocomplete ng-click in md-not-found template with promise

Open WedgeSama opened this issue 11 years ago • 13 comments

If use of a promise to get items, the ng-click in the md-not-found template is not triggered. It can be reproduse with the HEAD doc example by check Simulate query for result?.

Do not work on the 1.0.0-rc1 too.

And the solution given in #5215 do not work in this case.

WedgeSama avatar Oct 22 '15 09:10 WedgeSama

Why would you want the md-not-found template to show when you click on a button for one of the suggestions? It should just close the suggestions list all together and do whatever your ng-click handler wants.

epelc avatar Oct 23 '15 16:10 epelc

It is not that. I want to click on a link in the md-not-found template but it did not trigger the ng-click event inside of the template (to create a new item based on the search terms for example).

WedgeSama avatar Oct 23 '15 17:10 WedgeSama

Sorry for the misunderstanding. That makes perfect sense. This is definitely a bug.

Also it might have something to do with the pointer-events they tend to break things like this if they aren't set correctly. See https://developer.mozilla.org/en-US/docs/Web/CSS/pointer-events

epelc avatar Oct 23 '15 17:10 epelc

+1

luke14free avatar Nov 03 '15 16:11 luke14free

+1

lekev avatar Nov 07 '15 14:11 lekev

+1

tiagopromob avatar Nov 13 '15 18:11 tiagopromob

+1

chunkai1312 avatar Nov 20 '15 09:11 chunkai1312

+1

andrewmcconville avatar Dec 08 '15 16:12 andrewmcconville

This looks like a more complicated relative of #5526, so might be worth testing after #6103 is merged.

RolandHeath avatar Dec 11 '15 05:12 RolandHeath

+1

mattdowell avatar Dec 22 '15 19:12 mattdowell

+1

steffi80 avatar Jan 01 '16 09:01 steffi80

+1

egystr avatar Jan 11 '16 10:01 egystr

+1

phsantiago avatar Jan 28 '16 11:01 phsantiago