mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 13:32:54 +08:00
refactor(swiper): add null check for better testability (#11191)
This commit is contained in:

committed by
Brandy Carney

parent
bb22e4a5f3
commit
8a4a93ee03
@ -897,9 +897,10 @@ function cleanupStyles(s: Slides) {
|
||||
}
|
||||
|
||||
// Container
|
||||
removeClass(s.container, s._classNames);
|
||||
s.container.removeAttribute('style');
|
||||
|
||||
if(s.container){
|
||||
removeClass(s.container, s._classNames);
|
||||
s.container.removeAttribute('style');
|
||||
}
|
||||
// Wrapper
|
||||
s._wrapper.removeAttribute('style');
|
||||
|
||||
|
Reference in New Issue
Block a user