-
Notifications
You must be signed in to change notification settings - Fork 21
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
feat: Migrate renderless and simple filter components to composition API #1529
feat: Migrate renderless and simple filter components to composition API #1529
Conversation
packages/x-components/src/x-modules/facets/components/filters/simple-filter.vue
Outdated
Show resolved
Hide resolved
const cssClasses = computed(() => ({ | ||
'x-simple-filter--is-selected': props.filter.selected | ||
})); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be done directly on the template.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This option doesn't work either.
:class="cssClasses" | ||
:clickEvents="_clickEvents" | ||
:clickEvents="clickEventsEmit" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not having any effect on the Vue3 playground. Classes added by this component are not applied.
…mposition API BREAKING-CHANGE: use cssClasses prop to pass classes through the component in Vue 3 instead of class or :class when using RenderlessFilter or SimpleFilter components
Motivation and context
Type of change
What is the destination branch of this PR?
Main
How has this been tested?
Tests performed according to testing guidelines:
Checklist: