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

bug: Action sheet has no method cancel #1013

Closed
sean-hill opened this issue Apr 1, 2014 · 1 comment
Closed

bug: Action sheet has no method cancel #1013

sean-hill opened this issue Apr 1, 2014 · 1 comment

Comments

@sean-hill
Copy link

Type: bug

Platform: all

When I click the cancel button for an Action Sheet using the example in the docs I get this error. "TypeError: Object # has no method 'cancel'".

bluehallu pushed a commit to bluehallu/ionic that referenced this issue Jun 5, 2014
The fix @ajoslin provided doesn't work. All what's being extended in his fix is later overloaded 20 lines below (scope.destructiveButtonClicked, scope.buttonClicked and scope.cancel). Furthermore, the error doesn't come from calling scope.cancel() but from calling opts.cancel(). I've eliminated the redundant code and also fixed the original bug.
bluehallu pushed a commit to bluehallu/ionic that referenced this issue Jun 5, 2014
The fix that was supposed to close this doesn't:

ionic-team@ba39fb0

The real problem was that cancel was being called on opts and not on scope. The code by @ajoslin is redundant as all the three functions he gives a default angular.noop are overloaded 20 lines below so I reverted it.
@ionitron-bot
Copy link

ionitron-bot bot commented Sep 6, 2018

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant