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

Switching between pages with slides throws exception #11024

Closed
Daskus1 opened this issue Apr 3, 2017 · 3 comments
Closed

Switching between pages with slides throws exception #11024

Daskus1 opened this issue Apr 3, 2017 · 3 comments

Comments

@Daskus1
Copy link

Daskus1 commented Apr 3, 2017

Ionic version: (check one with "x")
[x] 2.x

I'm submitting a ... (check one with "x")
[x] bug report

Current behavior:
When you switch quickly between two pages which have a few slides inside an exception is thrown and the whole app needs to be restarted.

Expected behavior:
Switching between pages with slides should not break the app.

Steps to reproduce:
This repo reproduces the issue: https://github.com/Daskus1/ionic-slides/
Just switch a few times, quickly, between 'Kittens' and 'Puppies' segment and the error should appear.

Other information:

TypeError: Cannot read property 'removeAttribute' of undefined
    at cleanupStyles (swiper.js:895)
    at destroySwiper (swiper.js:932)
    at Slides.ngOnDestroy (slides.js:1027)
    at Wrapper_Slides.ngOnDestroy (/IonicModule/Slides/wrapper.ngfactory.js:28)
    at View_HomePage4.destroyInternal (/AppModule/HomePage/component.ngfactory.js:542)
    at View_HomePage4.AppView.destroy (view.js:203)
    at View_HomePage4.DebugAppView.destroy (view.js:606)
    at ViewContainerRef_.remove (view_container_ref.js:282)
    at ViewContainerRef_.clear (view_container_ref.js:303)
    at SwitchView.destroy (ng_switch.js:31)
    at SwitchView.enforceState (ng_switch.js:42)
    at NgSwitchCase.ngDoCheck (ng_switch.js:233)
    at Wrapper_NgSwitchCase.ngDoCheck (/CommonModule/NgSwitchCase/wrapper.ngfactory.js:32)
    at CompiledTemplate.proxyViewClass.View_HomePage0.detectChangesInternal (/AppModule/HomePage/component.ngfactory.js:778)
    at CompiledTemplate.proxyViewClass.AppView.detectChanges (view.js:425)

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):

 ordova CLI: 6.4.0
Ionic Framework Version: 2.3.0
Ionic CLI Version: 2.2.2
Ionic App Lib Version: 2.2.1
Ionic App Scripts Version: 1.1.4
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 10
Node Version: v7.6.0
Xcode version: Not installed
@jgw96 jgw96 added the v2 label Apr 3, 2017
@jgw96
Copy link
Contributor

jgw96 commented Apr 3, 2017

Hello, thanks for using Ionic, we will look into this issue.

@jgw96
Copy link
Contributor

jgw96 commented Apr 5, 2017

Hello, going to close this issue as a duplicate of #10830

@jgw96 jgw96 closed this as completed Apr 5, 2017
@ionitron-bot
Copy link

ionitron-bot bot commented Sep 3, 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 3, 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

2 participants