mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
fix(ion-slides): fast rerendering causes a crash (#11100)
* fix #10830 add condition, to check if slider exist before remove * Update swiper.ts * Fixes minor style issues
This commit is contained in:
@ -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');
|
||||
|
Reference in New Issue
Block a user