Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

toggle method can not be overwritten #78

Open
jeevasusej opened this issue Dec 22, 2016 · 3 comments
Open

toggle method can not be overwritten #78

jeevasusej opened this issue Dec 22, 2016 · 3 comments

Comments

@jeevasusej
Copy link

I am getting the following issue in the browser console.

Error: The toggle method can not be overwritten

Which scenario, this issue will occur. How to avoid?

@jeevasusej
Copy link
Author

Found the issue.

Can you solve the following scenario?

I have initiated the v accordion first.

Then I navigate to other control.

Based on the if condition, the directive hides. So again if i enable the directive, then the object which is defined by the directive is available and not yet vanished.

So this issue has been raised. Now I have assigned the null object based on condition.

Please solve the issue.

@HalidCisse
Copy link

having the same issue, any workaround ?

@OogieBoogieInJSON
Copy link

OogieBoogieInJSON commented Jun 8, 2017

I think this repository is not maintained anymore. The problem is with scope.control, it is bidirectionally bound and unless you are clearing it from parent controller/directive anything won't work without some refactoring (not even clearing on $destroy). So, when you are hiding the accordion inside a ng-if, make sure you set your control reference to undefined when the ng-if check will resolve to false.

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

No branches or pull requests

3 participants