Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

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

Closed
gitawego opened this issue Dec 2, 2015 · 6 comments
Closed

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

gitawego opened this issue Dec 2, 2015 · 6 comments
Assignees

Comments

@gitawego
Copy link

gitawego commented Dec 2, 2015

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!
@fjoubert
Copy link

fjoubert commented Dec 3, 2015

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

@vitorlopez
Copy link

Here is a demo of this bug in action:

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

@salalaslam
Copy link

+1

1 similar comment
@erween
Copy link

erween commented Dec 8, 2015

+1

@myagoo
Copy link

myagoo commented Dec 8, 2015

Made a pull request here : #6156

@lmignot
Copy link

lmignot commented Dec 10, 2015

+1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants