Dropdown / Select Options do not render correctly #2985
Answered
by
j0rgedev
musaffarpatel
asked this question in
PrimeVue
-
Beta Was this translation helpful? Give feedback.
Answered by
j0rgedev
Nov 7, 2024
Replies: 1 comment 1 reply
-
Hello @musaffarpatel. When using primevue via CDN, you must use kebab-case instead of camelCase for HTML attributes. So, the only HTML attribute that you'll have to change is optionLabel since it should be option-label. Something like this: <div id="app">
<p-select
v-model="selectedCity"
:options="cities"
option-label="name"
placeholder="Select a City"
/>
</div> |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
musaffarpatel
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello @musaffarpatel. When using primevue via CDN, you must use kebab-case instead of camelCase for HTML attributes. So, the only HTML attribute that you'll have to change is optionLabel since it should be option-label. Something like this: