mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
fix(slides): undefined error is no longer thrown after destroying and quickly re-creating ion-slides (#23239)
resolves #22289
This commit is contained in:
@ -39,8 +39,10 @@ export class Slides implements ComponentInterface {
|
|||||||
async optionsChanged() {
|
async optionsChanged() {
|
||||||
if (this.swiperReady) {
|
if (this.swiperReady) {
|
||||||
const swiper = await this.getSwiper();
|
const swiper = await this.getSwiper();
|
||||||
Object.assign(swiper.params, this.options);
|
if (swiper?.params) {
|
||||||
await this.update();
|
Object.assign(swiper.params, this.options);
|
||||||
|
await this.update();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user