diff --git a/lib/KDropdownMenu.vue b/lib/KDropdownMenu.vue index 625b40b37..5df118aeb 100644 --- a/lib/KDropdownMenu.vue +++ b/lib/KDropdownMenu.vue @@ -21,6 +21,7 @@ ref="menu" :options="options" :hasIcons="hasIcons" + :maxWidth="maxWidth" @select="handleSelection" /> @@ -82,6 +83,12 @@ type: Boolean, default: false, }, + + /** maximim width of the dropdown menu */ + maxWidth: { + type: [Number, String], + default: null, + }, /** * The position of the dropdown relative to the button */ diff --git a/lib/keen/UiMenu.vue b/lib/keen/UiMenu.vue index fc1e79688..3bb89077f 100644 --- a/lib/keen/UiMenu.vue +++ b/lib/keen/UiMenu.vue @@ -8,6 +8,7 @@ lazy :class="classes" + :style="menuStyle" >