Skip to content

Commit 1b59e3a

Browse files
authored
Fast searchbox dialog activation (#410)
1 parent 37b414d commit 1b59e3a

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/components/searchbox/NodeSearchBoxPopover.vue

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,20 @@
22
<div>
33
<Dialog
44
v-model:visible="visible"
5-
pt:root="invisible-dialog-root"
6-
pt:mask="node-search-box-dialog-mask"
75
modal
86
:dismissable-mask="dismissable"
97
@hide="clearFilters"
8+
:pt="{
9+
root: { class: 'invisible-dialog-root' },
10+
mask: { class: 'node-search-box-dialog-mask' },
11+
transition: {
12+
enterFromClass: 'opacity-0 scale-75',
13+
// 100ms is the duration of the transition in the dialog component
14+
enterActiveClass: 'transition-all duration-100 ease-out',
15+
leaveActiveClass: 'transition-all duration-100 ease-in',
16+
leaveToClass: 'opacity-0 scale-75'
17+
}
18+
}"
1019
>
1120
<template #container>
1221
<NodeSearchBox

0 commit comments

Comments
 (0)