michitaro / vue-menu

Menu/Contextmenu Component for vue2
https://michitaro.github.io/vue-menu/
MIT License
263 stars 26 forks source link

Several Vue Warn received for simple example #16

Open CharGomez opened 5 years ago

CharGomez commented 5 years ago

I'm receiving different warns when trying to implement a simple context menu, using code from the examples, this warn is triggered when I hover on a child element.

Educlimber 2019-03-25 23-29-29

  <hsc-menu-style-white>
    <hsc-menu-button-menu style="margin: 50px;" @open="open" @close="close">
      <button>Click Here</button>
      <template slot="contextmenu">
        <hsc-menu-item label="MenuItem 1"/>
        <hsc-menu-item label="MenuItem 2"/>
        <hsc-menu-item label="MenuItem 2">
          <hsc-menu-item label="MenuItem 4"/>
          <hsc-menu-item label="MenuItem 5"/>
        </hsc-menu-item>
      </template>
    </hsc-menu-button-menu>
  </hsc-menu-style-white>
</template>
<script>
export default {
  methods: {
    open() {
      console.log("open");
    },
    close() {
      console.log("close");
    }
  }
};
</script>
<style>
.box {
  box-shadow: 0 0 4pt rgba(0, 0, 0, 0.25);
  border-radius: 20pt;
  background-color: rgba(255, 255, 255, 0.25);
  user-select: none;
  cursor: context-menu;
}
</style>```
michitaro commented 5 years ago

What warning did you get?

CharGomez commented 5 years ago

What warning did you get?

I just updated the Issue 😄

michitaro commented 5 years ago

Oh, thanks for the report. I'll inspect it.

michitaro commented 5 years ago

I cannot reproduce the problem with a cleanly re-created project. Could you provide a repository reproducing the problem?

The warning in your screenshot sais property or method $firebaseRefs is not defined. The problem is caused in conflicts between vue-menu and firebase-things.

dd1994 commented 5 years ago

Screen Shot 2019-05-10 at 12 27 27

+1 for this

notchris commented 5 years ago

Also getting this issue.

notchris commented 5 years ago

An update: This issue occurs even without anything firebase related in my project.

michitaro commented 5 years ago

@notchris Could you share your package.json and package-lock.json?

notchris commented 5 years ago

@michitaro Sure thing, here is my package.json. Do you want the yarn.lock file as well?

michitaro commented 5 years ago

@notchris Thanks!

Do you want the yarn.lock file as well?

Yes, I'd like it.

notchris commented 5 years ago

Sure thing, had trouble with bpaste since it's larger so I put it on my server temporarily. https://notchris.net/example_yarnlock.txt

michitaro commented 5 years ago

I could not reproduce the problem with your package.json and yarn.lock. Could you provide a minimum reproduction repository? Or could you make changes on this repository and make a PR?

notchris commented 5 years ago

@michitaro Sure thing, when I get home from work I'll create a mrr.