fix(ui): auto-profile-hover-on-history-view (#3368)
This commit is contained in:
parent
1a5c3eb671
commit
32423164f6
2 changed files with 5 additions and 1 deletions
|
|
@ -82,7 +82,7 @@ function handleFavouritedBoostedByClose() {
|
|||
>
|
||||
<ModalMediaPreview v-if="isMediaPreviewOpen" @close="closeMediaPreview()" />
|
||||
</ModalDialog>
|
||||
<ModalDialog v-model="isEditHistoryDialogOpen" max-w-125>
|
||||
<ModalDialog v-model="isEditHistoryDialogOpen" :focus-first-element="false" max-w-125>
|
||||
<StatusEditPreview v-if="statusEdit" :edit="statusEdit" />
|
||||
</ModalDialog>
|
||||
<ModalDialog v-model="isCommandPanelOpen" max-w-fit flex>
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ const {
|
|||
closeByMask = true,
|
||||
useVIf = true,
|
||||
keepAlive = false,
|
||||
focusFirstElement = true,
|
||||
} = defineProps<{
|
||||
// level of depth
|
||||
zIndex?: number
|
||||
|
|
@ -21,6 +22,8 @@ const {
|
|||
keepAlive?: boolean
|
||||
// The aria-labelledby id for the dialog.
|
||||
dialogLabelledBy?: string
|
||||
// Whether to focus on the first element when the modal opens.
|
||||
focusFirstElement?: boolean
|
||||
}>()
|
||||
|
||||
const emit = defineEmits<{
|
||||
|
|
@ -45,6 +48,7 @@ const { activate } = useFocusTrap(elDialogRoot, {
|
|||
escapeDeactivates: true,
|
||||
preventScroll: true,
|
||||
returnFocusOnDeactivate: true,
|
||||
initialFocus: focusFirstElement ? undefined : false,
|
||||
})
|
||||
|
||||
defineExpose({
|
||||
|
|
|
|||
Loading…
Reference in a new issue