Skip to content
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

fix: slot not updating with v-slot #1026

Merged
merged 1 commit into from Sep 23, 2020

Conversation

lee-chase
Copy link
Member

Closes #1025 #936

When using the slot syntax slot="name" beofreUpdate is able to identify whether or not a slot exists. However when switching to the new syntax v-slot:name only the default slot appears in this.$slots. This PR moves the check for slot content to the updated lifecycle method which works for both old and newer syntax.

Changelog

M packages/core/src/components/cv-combo-box/cv-combo-box.vue
M packages/core/src/components/cv-data-table/_cv-data-table-row-inner.vue
M packages/core/src/components/cv-data-table/cv-data-table-row.vue
M packages/core/src/components/cv-data-table/cv-data-table-skeleton.vue
M packages/core/src/components/cv-data-table/cv-data-table.vue
M packages/core/src/components/cv-date-picker/cv-date-picker.vue
M packages/core/src/components/cv-dropdown/cv-dropdown.vue
M packages/core/src/components/cv-modal/cv-modal.vue
M packages/core/src/components/cv-multi-select/cv-multi-select.vue
M packages/core/src/components/cv-number-input/cv-number-input.vue
M packages/core/src/components/cv-select/cv-select.vue
M packages/core/src/components/cv-text-area/cv-text-area.vue
M packages/core/src/components/cv-text-input/cv-text-input.vue
M packages/core/src/components/cv-time-picker/cv-time-picker.vue
M packages/core/src/components/cv-ui-shell/cv-header.vue
M packages/core/src/components/cv-ui-shell/cv-side-nav-link.vue
M packages/core/src/components/cv-ui-shell/cv-side-nav-menu.vue
M storybook/stories/cv-ui-shell-story.js

@netlify
Copy link

netlify bot commented Sep 23, 2020

Deploy preview for carbon-components-vue ready!

Built with commit 9d21ad2

https://deploy-preview-1026--carbon-components-vue.netlify.app

@lee-chase lee-chase merged commit 2b026c4 into carbon-design-system:master Sep 23, 2020
@lee-chase lee-chase deleted the fixSlotUsage branch September 23, 2020 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cv-global-action has issue with conditional rendering (v-if)
1 participant