We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 292f9da commit 9195e7cCopy full SHA for 9195e7c
src/components/Dialog.vue
@@ -7,7 +7,7 @@
7
:width="width"
8
:shift-y="0.3"
9
:adaptive="true"
10
- :focus-trap="true"
+ :focus-trap="autoFocus"
11
:clickToClose="clickToClose"
12
:transition="transition"
13
@before-open="beforeOpened"
@@ -50,6 +50,10 @@ export default {
50
},
51
transition: {
52
type: String
53
+ },
54
+ focusTrap: {
55
+ type: Boolean,
56
+ default: false
57
}
58
59
inject: ['$modal'],
@@ -70,6 +74,9 @@ export default {
70
74
return {
71
75
flex: `1 1 ${100 / this.buttons.length}%`
72
76
77
78
+ autoFocus() {
79
+ return this.params.autoFocus ?? this.focusTrap;
73
80
81
82
methods: {
0 commit comments