Skip to content

Incorrect CSS variables for AutoComplete component #3067

Answered by j0rgedev
fatihsolhan asked this question in PrimeVue
Discussion options

You must be logged in to vote

Hello @fatihsolhan. You are absolutely right. This looks like a bug. It seems that the autocomplete tokens, such as the background color, should be passed to the InputText component, but they aren't. Could you please open an issue for this? I'll try to find a solution myself tonight, but once the issue is open, others can also contribute to solving it 😁

By the way, if you need a workaround, you can play with the autocomplete PT:

      <AutoComplete
        :dt="myAutoComplete"
        v-model="value2"
        inputId="in_label"
        :suggestions="items"
        @complete="search"
        :pt="{
          pcInputText: {
            root: {
              class: '!bg-red-500',
            },

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@fatihsolhan
Comment options

@fatihsolhan
Comment options

@j0rgedev
Comment options

Answer selected by fatihsolhan
@fatihsolhan
Comment options

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