Skip to content

Commit f9d9b21

Browse files
authored
Update form-timepicker.js
1 parent b815b0e commit f9d9b21

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

src/components/form-timepicker/form-timepicker.js

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,12 @@ const propsMixin = {
170170
labelDecrement: {
171171
type: String,
172172
default: () => getConfigFallback('labelDecrement')
173-
}
173+
},
174+
// extra dropdown stuff
175+
menuClass: {
176+
type: [String, Object, Array],
177+
default: null
178+
},
174179
}
175180
}
176181

@@ -494,10 +499,17 @@ export const BFormTimepicker = /*#__PURE__*/ Vue.extend({
494499
{
495500
ref: 'menu',
496501
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+
],
501513
attrs: {
502514
id: idMenu,
503515
role: 'dialog',

0 commit comments

Comments
 (0)