0

I have following Vue 3 component image-template-row-item which has the prop templates-types

enter image description here

which is defined in the component in the props:

enter image description here

now this prop is always passed as undefined to the component while appears in the attrs: enter image description here enter image description here

so what am i missing here to make it work?

2

2 Answers 2

1

Props are usually normalized under the hood, camel-cased and kebab-cased props are mutually interchangeable. This doesn't apply to any random case.

It should be permissionsRoot but not PermissionsRoot, and so on.

0

maybe if you try to define it as an object and changing the first uppercase letter to lowercase

props: {
    item: String,
    templatesTypes: String,
    permissionsRoot: String,
    index: String,

},

Not the answer you're looking for? Browse other questions tagged or ask your own question.