Vue-material: router-link within md-menu doesn't work

Created on 16 Feb 2017  路  5Comments  路  Source: vuematerial/vue-material

Hi!

I need a router-link within md-menu, I try

    <md-menu>
      <md-button md-menu-trigger>Open Menu</md-button>
      <md-menu-content>

        <router-link to="/foo" tag="md-menu-item">
          <span>Go to Foo</span>
        </router-link>
        <!-- OR -->
        <md-menu-item>
          <router-link to="/bar">
            <span>Go to Bar</span>
          </router-link>
        </md-menu-item>

      </md-menu-content>
    </md-menu>

http://codepen.io/anon/pen/dNLNOO

It doesn't work and looks awful, thanks

bug

Most helpful comment

I will take a look at this issue. It seems that the mdMenuItem is preventing the click.

All 5 comments

See this #470

@cawa-93 Even this workaround doesn't work https://github.com/marcosmoura/vue-material/issues/470

I will take a look at this issue. It seems that the mdMenuItem is preventing the click.

Any updates on this? Has someone found a workaround?

Hello everyone.
This issue is the same as #470 (a workaround can be found there too @johnwebbcole ). I'm closing this issue for now and we'll fix it ASAP.

Thank you @johnwebbcole @romangit and @cawa-93 :D

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bjarnik picture bjarnik  路  3Comments

lee-frank picture lee-frank  路  3Comments

andreujuanc picture andreujuanc  路  3Comments

delueg picture delueg  路  3Comments

Leshgan picture Leshgan  路  3Comments