Fix: Actualizar UDropdown a UDropdownMenu para Nuxt UI 4
All checks were successful
build-and-deploy / build-and-deploy (push) Successful in 1m9s
All checks were successful
build-and-deploy / build-and-deploy (push) Successful in 1m9s
- Cambiar UDropdown a UDropdownMenu - Cambiar :popper a :content con side/align - Cambiar click a onSelect en items del menú
This commit is contained in:
@@ -66,13 +66,13 @@
|
||||
@drop.prevent="handleDrop"
|
||||
>
|
||||
<!-- Attachment button -->
|
||||
<UDropdown :items="attachmentMenuItems" :popper="{ placement: 'top-start' }">
|
||||
<UDropdownMenu :items="attachmentMenuItems" :content="{ side: 'top', align: 'start' }">
|
||||
<UButton
|
||||
variant="ghost"
|
||||
icon="i-lucide-paperclip"
|
||||
class="text-[var(--wa-text-muted)]"
|
||||
/>
|
||||
</UDropdown>
|
||||
</UDropdownMenu>
|
||||
|
||||
<!-- Hidden file inputs -->
|
||||
<input
|
||||
@@ -206,22 +206,22 @@ const attachmentMenuItems = [
|
||||
[{
|
||||
label: 'Imagen',
|
||||
icon: 'i-lucide-image',
|
||||
click: () => imageInput.value?.click()
|
||||
onSelect: () => imageInput.value?.click()
|
||||
}],
|
||||
[{
|
||||
label: 'Video',
|
||||
icon: 'i-lucide-video',
|
||||
click: () => videoInput.value?.click()
|
||||
onSelect: () => videoInput.value?.click()
|
||||
}],
|
||||
[{
|
||||
label: 'Audio',
|
||||
icon: 'i-lucide-music',
|
||||
click: () => audioInput.value?.click()
|
||||
onSelect: () => audioInput.value?.click()
|
||||
}],
|
||||
[{
|
||||
label: 'Documento',
|
||||
icon: 'i-lucide-file',
|
||||
click: () => documentInput.value?.click()
|
||||
onSelect: () => documentInput.value?.click()
|
||||
}]
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user