I have a vuetify v-select dropdown. Inside I made a slot #append-item in which I have a button "validate" I want the button to always be visible when I scroll inside the dropdown.
Asked
Active
Viewed 2,711 times
2 Answers
4
Wrap your button with a div having the append
class name :
<template #append-item>
<div class="append">
<v-btn color="primary">valider</v-btn>
</div>
</template>
that class should have the following css rules :
.append{
position:sticky;
bottom:8px;
width:100%;
display:flex;
justify-content :center;
background :white;
}

Boussadjra Brahim
- 82,684
- 19
- 144
- 164
-
1save my day, thx! – Vitaliy Demchuk Dec 03 '21 at 08:05
2
I added this style to my "validate" button and it worked:
.append {
position: sticky;
bottom: 0;
background: white;
}
<template #append-item>
<div class="append">
<v-btn color="primary">
Validate
</v-btn>
</div>
</template>

fakhfakh emna
- 73
- 2
- 8