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()" />
|
<ModalMediaPreview v-if="isMediaPreviewOpen" @close="closeMediaPreview()" />
|
||||||
</ModalDialog>
|
</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" />
|
<StatusEditPreview v-if="statusEdit" :edit="statusEdit" />
|
||||||
</ModalDialog>
|
</ModalDialog>
|
||||||
<ModalDialog v-model="isCommandPanelOpen" max-w-fit flex>
|
<ModalDialog v-model="isCommandPanelOpen" max-w-fit flex>
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ const {
|
||||||
closeByMask = true,
|
closeByMask = true,
|
||||||
useVIf = true,
|
useVIf = true,
|
||||||
keepAlive = false,
|
keepAlive = false,
|
||||||
|
focusFirstElement = true,
|
||||||
} = defineProps<{
|
} = defineProps<{
|
||||||
// level of depth
|
// level of depth
|
||||||
zIndex?: number
|
zIndex?: number
|
||||||
|
|
@ -21,6 +22,8 @@ const {
|
||||||
keepAlive?: boolean
|
keepAlive?: boolean
|
||||||
// The aria-labelledby id for the dialog.
|
// The aria-labelledby id for the dialog.
|
||||||
dialogLabelledBy?: string
|
dialogLabelledBy?: string
|
||||||
|
// Whether to focus on the first element when the modal opens.
|
||||||
|
focusFirstElement?: boolean
|
||||||
}>()
|
}>()
|
||||||
|
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
|
|
@ -45,6 +48,7 @@ const { activate } = useFocusTrap(elDialogRoot, {
|
||||||
escapeDeactivates: true,
|
escapeDeactivates: true,
|
||||||
preventScroll: true,
|
preventScroll: true,
|
||||||
returnFocusOnDeactivate: true,
|
returnFocusOnDeactivate: true,
|
||||||
|
initialFocus: focusFirstElement ? undefined : false,
|
||||||
})
|
})
|
||||||
|
|
||||||
defineExpose({
|
defineExpose({
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue