Skip to content

Commit

Permalink
fix(ion-slides): fast rerendering causes a crash (#11100)
Browse files Browse the repository at this point in the history
* fix #10830

add condition, to check if slider exist before remove

* Update swiper.ts

* Fixes minor style issues
  • Loading branch information
mickadoua authored and manucorporat committed Apr 24, 2017
1 parent 2357bb4 commit 78d427d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/slides/swiper/swiper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -891,6 +891,11 @@ export function enableTouchControl(s: Slides) {

// Cleanup dynamic styles
function cleanupStyles(s: Slides) {
if (!s.container || !s._wrapper) {
//fix #10830
return;
}

// Container
removeClass(s.container, s._classNames);
s.container.removeAttribute('style');
Expand Down

0 comments on commit 78d427d

Please sign in to comment.