Skip to content

Dropdown / Select Options do not render correctly #2985

Discussion options

You must be logged in to vote

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>

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@musaffarpatel
Comment options

Answer selected by musaffarpatel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants