-
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: <ion-slide> not work correctly in beta.10 #7089
Comments
Anyfix? |
+1 |
Hello everyone! I can confirm this issue and will be looking more into it. What platforms are you all seeing the issue on? |
Just on browser. Something with NaN value instead of number. It looks like widget problem. Do you update slider.js? |
Copied from forum discussion:
|
Hey @jgw96 any update on this? It's kind of a big deal 😃 |
@javebratt, yep would you mind giving the latest Ionic 2 nightly a try and see if you still run into the same issues? To install Ionic 2 nightly just run |
Hey @jgw96 I'm trying nightly, but it half works, I'm on Ionic Serve right now, it works only if I emulate iOS, if I emulate android the slider only slides half way, it doesn't move to the next slide. And my EDIT: With the new version I had to update |
@javebratt yeah, we did a refactor of the overlay components such as alert and loading. When beta.11 gets released we will have directions on how to use the new api. Here is an example of creating an opening an alert with the new api Alert is now a provider called AlertController
Inject it in your constructor
And use it like this
Hope that helps! I am working on the slides issue now, it seems to be a timing issue of when swiper gets initiated, but im not 100% sure on that yet |
+1 |
1 similar comment
+1 |
Probably related: to #7192 |
Yes, same problem as #7192. Also having the issue on Android (browser and emulator, and probably device as well) |
Concerning 580b8d5: |
+1 very strange fix. What about use ngAfterViewInit or ngAfterContantInit?
to ngAfterViewInit block or use QueryList and Observe |
@GerritErpenstein @xr0master So for now we had to use the fix of setting the timeout to 300ms because none of the Angular lifetime hooks happened at exactly the right time that swiper needed unfortunately. We are going to be taking a deeper look at slides in the future, but this was the best fix for now. I tested it on all of my devices, including slower android devices and an old iphone 5 and this fix is solid. |
@jgw96 I understand... However how did it work before beta.10? |
For me the following workaround works (no need to add 300ms to setTimeout): Before Beta 10:
Beta 10:
|
Why did you close this issue? Still there and fixes are not clear. |
I think its fixed with this commit 580b8d5 But its not available in beta-10. So you have to wait for beta 11 :-/ |
Thanks! |
Hello @barocsi thid was fixed in the above mentioned commit and will be in the beta.11 release. Thanks for using Ionic! |
Can we get a rough time range when beta 11 will be released? :) |
@hackfrag You can always use a nightly release: |
Issue still present on beta 11! |
Problem
After loading a page my slider doesn't work correctly (show only 1 bullet point and slide don't work), but after resizing page, bullets have a right number and slider work correctly. I mean this is bug in beta.10.
Ionic version: Ionic 2 beta.10
Example
http://g.recordit.co/5D2CzdZa1o.gif
Discussion
https://forum.ionicframework.com/t/ion-slide-not-work-correctly-in-beta-10/56026
The text was updated successfully, but these errors were encountered: