Skip to content

Commit 50ea98d

Browse files
committed
fix(VMenu): prefer existing menuProps.attach
fixes #7547
1 parent e148110 commit 50ea98d

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

packages/vuetify/src/components/VSelect/VSelect.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -519,14 +519,15 @@ export default baseMixins.extend<options>().extend({
519519
const props = this.$_menuProps as any
520520
props.activator = this.$refs['input-slot']
521521

522-
// Attach to root el so that
523-
// menu covers prepend/append icons
524-
if (
522+
if ('attach' in props) void 0
523+
else if (
525524
// TODO: make this a computed property or helper or something
526525
this.attach === '' || // If used as a boolean prop (<v-menu attach>)
527526
this.attach === true || // If bound to a boolean (<v-menu :attach="true">)
528527
this.attach === 'attach' // If bound as boolean prop in pug (v-menu(attach))
529528
) {
529+
// Attach to root el so that
530+
// menu covers prepend/append icons
530531
props.attach = this.$el
531532
} else {
532533
props.attach = this.attach

0 commit comments

Comments
 (0)