Closed SSuarezBrooktec closed 4 years ago
ion-segment do not working due a queryselector error in console on change segment-button. Can't change segment.
Thanks for the issue. Did you upload the correct code? The repo looks like it is just the default tabs starter app.
Yes, try to compile and check this app in Android 5.1 (tabs not work)
I tried the app and all I see is the default Ionic 5 starter. I do not see any ion-segment
usage. Can you double check that you pushed the latest code?
sorry! hehe, uploading again
Try now :)
It looks like this is the same issue as https://github.com/ionic-team/ionic/issues/20466, so I am going to combine these two issues. I will post any updates regarding this on the linked thread. Thanks!
@liamdebeasi consegui replicar o problema, é o uso do bloqueio do touch no ngOnInit ou ionViewDidEnter
document.addEventListener("touchstart", () => { this.slides.lockSwipes(true); }, false);
document.addEventListener("touchend", () => { this.slides.lockSwipes(true); }, false);
document.addEventListener("touchcancel", () => { this.slides.lockSwipes(true); }, false);
document.addEventListener("touchleave", () => { this.slides.lockSwipes(true); }, false);
document.addEventListener("touchmove", () => { this.slides.lockSwipes(true); }, false);
Olá Gustavo, eu entendo um pouco de portugues, mas seria melhor se tu escrevas ao ionic team em ingles :D
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.
Bug Report
Ionic-Segment do not work on Android 5.1
Ionic version:
[x] 5.x
Steps to reproduce: Click on segment button
Related code:
Check this repo: https://github.com/SSuarezBrooktec/Ionic5_ion_segment_error
Other information:
Ionic info: