Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

431
Vistas
Long text in v-autocomplete

I need the v-autocomplete component to show the full text of the selected element.

In the selection it appears correctly:

But once selected it is shown like this, I don't know that the full text does not appear:

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Solution 1

Maybe you want to use the selection slot of the v-autocomplete and split your value into parts for better reading.

<v-autocomplete
  v-model="value"
  :items="items"
  dense
  filled
  label="Filled"
>
  <template v-slot:selection="{ item }">
    <div class="d-flex flex-column"> 
      <span>First</span> <!-- or e.g. item.fullname -->
      <span>Second</span> <!-- or e.g. item.address -->
    </div>
  </template>
</v-autocomplete>

Will result in: enter image description here

Solution 2

Or you could use word-break: break-all; like

.v-autocomplete .v-select__selections {
  word-break: break-all;
}
over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda