File tree 2 files changed +14
-1
lines changed
floating-vue/src/components
2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -460,6 +460,14 @@ Boolean: prevent the popper from overflowing the `boundary` by adjusting its pos
460
460
<VDropdown shift-cross-axis />
461
461
```
462
462
463
+ ### ` noAutoFocus `
464
+
465
+ Boolean: disable the auto focus on the popper DOM node when shown.
466
+
467
+ ``` vue
468
+ <VDropdown no-auto-focus />
469
+ ```
470
+
463
471
### ` ariaId `
464
472
465
473
Id used for the ` aria-describedby ` attribute. By default a random id.
Original file line number Diff line number Diff line change @@ -261,6 +261,11 @@ export default () => defineComponent({
261
261
type : Boolean ,
262
262
default : defaultPropFactory ( 'shiftCrossAxis' ) ,
263
263
} ,
264
+
265
+ noAutoFocus : {
266
+ type : Boolean ,
267
+ default : defaultPropFactory ( 'noAutoFocus' ) ,
268
+ } ,
264
269
} ,
265
270
266
271
emits : [
@@ -773,7 +778,7 @@ export default () => defineComponent({
773
778
await nextFrame ( )
774
779
this . classes . showFrom = false
775
780
this . classes . showTo = true
776
- this . $_popperNode . focus ( )
781
+ if ( ! this . noAutoFocus ) this . $_popperNode . focus ( )
777
782
} ,
778
783
779
784
async $_applyHide ( skipTransition = false ) {
You can’t perform that action at this time.
0 commit comments