-
-
Notifications
You must be signed in to change notification settings - Fork 7k
[Bug Report] V-slide-group arrows fail when adding slide items when v-slide-group has v-show==false #10455
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
Comments
I wonder if the solution is to call setWidths() when the vue activated lifecycle event fires? https://vuejs.org/v2/api/#activated |
@jaunt Your reproduction link is working as expected for me. Please create another one if it's still not working for you. |
I can reproduce it in current chrome |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I'm using this workaround for now <template>
<v-slide-group v-show="isVisible" ref="slideGroup">
<v-slide-item>...</v-slide-item>
</v-slide-group>
</template>
<script>
export default {
watch: {
isVisible(val) {
if (val) this.$refs.slideGroup.setWidths();
}
}
};
</script> |
This is a problem with Vuetify 2.3.9. No workarounds are currently working for me. |
Using dumptyd's suggestion works for me after the slide-items have been loaded. Directly calling |
@k3ssen |
.v-slide-group:not(.v-slide-group--has-affixes) > .v-slide-group__prev, For my case adding these css classes as above solved the issue. While selecting something from the items arrows were appearing but without interaction these css classes were blocking them (show-arrows was used). These are coming as display : none and pointer-events : none |
Environment
Vuetify Version: 2.2.9
Vue Version: 2.6.11
Browsers: Chrome 80.0.3987.87
OS: Mac OS 10.13.6
Steps to reproduce
Using the codepen link:
Expected Behavior
When slide group comes becomes visible again, the arrows visibility should be figured out automatically.
Actual Behavior
When the slide group becomes visible, arrows are gone.
Reproduction Link
https://codepen.io/jauntcode/pen/KKpPROd
The text was updated successfully, but these errors were encountered: