-
Notifications
You must be signed in to change notification settings - Fork 3
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
Carousel within vaadin-dialog has strange auto-progress behaviour #21
Comments
Confirmed with Vaadin 14.6.8 / Carousel 2.1.2-SNAPSHOT |
I was able to reproduce the issue but still haven't been able to figure out what's causing that behavior. |
The problem is that the function attached is being called twice when inside the dialog. |
Hello, Thanks in advance. |
I also have the problem described above and hope that an update will come in the next time. |
Fix released in Carousel version 2.1.4. |
In our application we are wanting to show a Carousel within a Dialog.
With auto-progress enabled on the Carousel, the example code with 1/2/3/4 slides ping-pongs from 1 -> 3 -> 1 -> 3 etc. Never goes to slides 2 or 4.
Setting startPosition to be the 2nd slide, it instead goes 2 -> 4 -> 2 -> 4 etc.
Example Dialog code to replicate would be... (borrowing s1 to s4 from the existing examples):
add(new Button("Open", (e) -> new Dialog(new Carousel(s1,s2,s3,s4).withAutoProgress()).open()));
The text was updated successfully, but these errors were encountered: