material icon indicating copy to clipboard operation
material copied to clipboard

[md-select][1.0.0-rc5]Cannot set property 'isOpen' of undefined

Open gitawego opened this issue 10 years ago • 6 comments

md-select throws error Cannot set property 'isOpen' of undefined around method

 function openSelect(e) {
        selectScope.isOpen = true;
        element.attr('aria-expanded', 'true');

        $mdSelect.show({

when set

$compileProvider.debugInfoEnabled(false);

for production.

the element.scope warning appeared as well:

element.scope() is not available when 'debug mode' == false. 
@see https://docs.angularjs.org/guide/production!

gitawego avatar Dec 02 '15 15:12 gitawego

I am experiencing the same issue with rc5 and rc6. Opening the console and executing angular.reloadWithDebugInfo() makes the md-select work as expected.

fjoubert avatar Dec 03 '15 08:12 fjoubert

Here is a demo of this bug in action:

http://codepen.io/anon/pen/bEGBjj?editors=001

vitorlopez avatar Dec 04 '15 11:12 vitorlopez

+1

salalaslam avatar Dec 06 '15 02:12 salalaslam

+1

erween avatar Dec 08 '15 07:12 erween

Made a pull request here : https://github.com/angular/material/pull/6156

myagoo avatar Dec 08 '15 13:12 myagoo

+1

lmignot avatar Dec 10 '15 09:12 lmignot