[Vuejs]-Why my page refresh when using v-carousel in vuetify?

0👍

It worked fine when I removed the height prop.

When you explicitly set the height prop on the v-carousel component, it restricts the height of the carousel to the specified value. This can sometimes cause issues with the scrolling behavior, especially if the content inside the carousel exceeds the specified height.

By removing the height prop, the v-carousel component will adjust its height based on the content inside it, allowing for proper scrolling and preventing the page from jumping to the top.

If you still require a specific height for your carousel, you can try setting the height on the parent container of the v-carousel component instead, ensuring that it has enough space to accommodate the carousel’s content.

Leave a comment