mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 20:33:32 +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
|
// Cleanup dynamic styles
|
||||||
function cleanupStyles(s: Slides) {
|
function cleanupStyles(s: Slides) {
|
||||||
|
if (!s.container || !s._wrapper) {
|
||||||
|
//fix #10830
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Container
|
// Container
|
||||||
removeClass(s.container, s._classNames);
|
removeClass(s.container, s._classNames);
|
||||||
s.container.removeAttribute('style');
|
s.container.removeAttribute('style');
|
||||||
|
Reference in New Issue
Block a user