Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

VueJs & Vuetify – V-select outlined

I’m new to VueJS and Vuetify. V-select outlined the label is not placed directly on the border of the field. I have to click in this one first, why ?

My code :

<template>
  <v-row>
    <v-col
      cols="12"
    >
      <v-card color="white" variant="elevated">
        <v-form id="frmFilter" class="ma-md-3">
          <v-row class="ma-2 ga-3">
            <v-select
              label="Organismes"
              :items=items
              multiple
              variant="outlined"
              density="compact"
            ></v-select>
              <v-btn density="comfortable" type="submit" color="light-blue-darken-4">Filtrer</v-btn>
              <v-btn density="comfortable" type="submit">Réinitialiser</v-btn>
          </v-row>
        </v-form>
      </v-card>
    </v-col>
  </v-row>
</template>
<script>
export default {
  name: 'App',
  data: () => ({
    items: ['Blue', 'Red', 'Yellow', 'Green'],
  }),
};
</script>

It gives that :
v-select

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

thank you for your feedback

>Solution :

As explained by Moritz this is the intended position of the label, but you can use active prop :

<v-select
        label="Organismes"
        :items="items"
        multiple
        variant="outlined"
        density="compact"
        active
    ></v-select>
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading