-
Notifications
You must be signed in to change notification settings - Fork 173
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
[Oruga-next][Vue 3.x] AddonsClass not working on Field component #74
Comments
You are watching Vue 2 branch, you should take a look at PS: probably that issue has been fixed |
I can't see |
I meat packages https://www.github.com/oruga-ui/oruga/tree/develop/packages%2Foruga-next It's working in progress, but probably next week will be available!! |
@jtommy I solved this issue by changing this line:
With this code: renderedNode = this.$slots.default().reduce((i: number, node: any) => node.type ? i + 1 : i, 0) Seems that no more |
Overview of the problem
Oruga-next version: [0.2.2]
Vuejs version: [3.0.5]
OS/Browser: Chromium/Firefox
Description
o-field--addons
class is not added onField component
because ofslot
implementation on Vue3.The problem is here:
oruga/packages/oruga/src/components/field/Field.vue
this.$slots
https://v3.vuejs.org/guide/migration/slots-unification.html
Maybe deep refactoring is required, because Oruga uses lots of
slot
.The text was updated successfully, but these errors were encountered: