File tree 1 file changed +17
-5
lines changed
src/components/form-timepicker
1 file changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,12 @@ const propsMixin = {
170
170
labelDecrement : {
171
171
type : String ,
172
172
default : ( ) => getConfigFallback ( 'labelDecrement' )
173
- }
173
+ } ,
174
+ // extra dropdown stuff
175
+ menuClass : {
176
+ type : [ String , Object , Array ] ,
177
+ default : null
178
+ } ,
174
179
}
175
180
}
176
181
@@ -494,10 +499,17 @@ export const BFormTimepicker = /*#__PURE__*/ Vue.extend({
494
499
{
495
500
ref : 'menu' ,
496
501
staticClass : 'dropdown-menu p-2' ,
497
- class : {
498
- show : this . visible ,
499
- 'dropdown-menu-right' : this . right
500
- } ,
502
+ class : [
503
+ // User supplied classes
504
+ this . menuClass ,
505
+ // dropdown direction positioning class (from dropdown mixin)
506
+ this . directionClass ,
507
+ // Classes we add/override
508
+ {
509
+ show : this . visible ,
510
+ 'dropdown-menu-right' : this . right
511
+ } ,
512
+ ] ,
501
513
attrs : {
502
514
id : idMenu ,
503
515
role : 'dialog' ,
You can’t perform that action at this time.
0 commit comments