-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: IonSlides call ionSlidesDidLoad twice #20732
Comments
Thanks for the issue. Can you provide a repo with the code required to reproduce this issue? |
No I can't..
tell me if it's enough. To reproduce this issue you must go or start in "signup" route, the swipes is locked. |
From the second time the "slidesIsLoaded" function is called twice |
Thanks for the follow up. I am going to close this as a duplicate of #20356. |
Tks a lot!! |
Adding ngIf to ion-slides and set it to true on "ngAfterViewInit" function, it works!! In the future release this "bug" will be solved or this workaround is the only way? |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
In my ionic-angular project i have a bug with "ion-slides",
i have an "ion-slides" inside a component that is loaded dynamically by angular router.
First time that the page and component are loaded, "ion-slides" calls "ionSlidesDidLoad" once.
When i change route and then i return to "ion-slides" route, after "ngOnInit", "ionSlidesDidLoad" is called twice, if i repeat the route change this event is called ever twice.
Ionic version:
[x] 5.0.0
Angular version:
[x] 9.0.5
Current behavior:
On "ionSlidesDidLoad" i call "lockSwipes" function, first time i load the page it works,
after routing if i try to slide next or prev slide i can.
Expected behavior:
I expect when "ion-slides" is loaded the "ionSlidesDidLoad" event is called once ever.
Related code:
Other information:
Ionic info:
The text was updated successfully, but these errors were encountered: