material icon indicating copy to clipboard operation
material copied to clipboard

md-menu async support

Open jb29 opened this issue 11 years ago • 3 comments

Hi,

I want to load md-menu-items asynchronously when the user clicks on a button to open a md-menu.

Everything works fine if I have at least 1 item in my array of menu items before the user opens the menu. See this codepen for an example.

But if the array is empty when the user opens the menu, I get an invisible md-backdrop covering the whole screen which prevents any further user interactions. Open this codepen and click on the button to reproduce this bug.

Tested with angular-material version 0.11.0

jb29 avatar Sep 17 '15 11:09 jb29

I suppose the menu initial rendering occurs only at first, when there's something to render it behaves as expected..

EladBezalel avatar Sep 17 '15 15:09 EladBezalel

Here is a updated CodePen Demo using bower-material/master and ng v1.4.6.

ThomasBurleson avatar Sep 22 '15 16:09 ThomasBurleson

Thanks, works great now.

Maybe in a later version you could add support for a loading animation similar to md-select's "Options With Async Search"?

jb29 avatar Sep 23 '15 13:09 jb29