File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -496,6 +496,21 @@ The `hide()` method accepts a single boolean argument. If the argument is `true`
496
496
returned to the dropdown toggle button after the menu has closed. Otherwise the document will gain
497
497
focus once the menu is closed.
498
498
499
+ ## Listening to dropdown changes via \$ root events
500
+
501
+ To listen to any dropdown opening, use:
502
+
503
+ ``` js
504
+ mounted () {
505
+ this .$root .$on (' bv::dropdown::show' , (bvEvent ) => {
506
+ console .log (' Dropdown is about to be shown' , bvEvent)
507
+ })
508
+ }
509
+ ```
510
+
511
+ Refer to the [ Events] ( /docs/components/dropdown#component-reference ) section of documentation for the
512
+ full list of events.
513
+
499
514
## Accessibility
500
515
501
516
Providing a unique ` id ` prop ensures ARIA compliance by automatically adding the appropriate
You can’t perform that action at this time.
0 commit comments