vmaimone/vue-context-menu

Click the disabled context menu item and not to close the context menu.

qw52655265 opened this issue · 2 comments

I have a context menu,and some context menu items are disabled,when i click the disabled items,i don't want the context menu to closed,how can i fixed it?
there is my code:

<context-menu id="tablectx" ref="ctx">
  <li class="ctx-item">
    <el-button class="ctx-button" type="text" @click="refreshHandler(true)">
      <i class="fa fa-refresh" aria-hidden="true"></i>
      Refresh
    </el-button>
  </li>
  <li class="ctx-item">
    <el-button class="ctx-button" type="text" @click="add" :disabled="btnCfg.sub">
      <i class="fa fa-plus-circle" aria-hidden="true"></i>
      Add
    </el-button>
  </li>
</context-menu>

+1 disabled item should be unclickable