question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

v-on="on": Property or method "on" is not defined on the instance

See original GitHub issue
    <v-menu offset-y>
      <template v-slot:activator="{ on }">
        <v-btn
          color="primary"
          dark
          v-on="on"
        >
          Dropdown
        </v-btn>
      </template>
      <v-list>
        <v-list-tile
          v-for="(item, index) in items"
          :key="index"
          @click=""
        >
          <v-list-tile-title>{{ item.title }}</v-list-tile-title>
        </v-list-tile>
      </v-list>
    </v-menu>
  </div>```


it cannot work
it print :
    Property or method "on" is not defined on the instance
what is the "on" ?????

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:9
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

10reactions
usb248commented, Apr 24, 2019

i confirm. when we use new syntax with v-slot:activator=“{ on }”. v-menu component is broken.

7reactions
jacekkarczmarczykcommented, Mar 21, 2019

Please only create issues with the provided issue creator. In the boilerplate for creating an issue, it explains that any ticket made without this will be automatically closed. Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Vue warn]: Property or method is not defined on the instance ...
Problem. [Vue warn]: Property or method "changeSetting" is not defined on the instance but referenced during render.
Read more >
Property or Method is Not Defined - Michael Thiessen
The full message is this: [Vue warn]: Property or method "prop" is not defined on the instance but referenced during render. Make sure...
Read more >
Property or method * is not defined on the instance but ...
Property or method * is not defined on the instance but referenced during render. Make sure to declare reactive data properties in the...
Read more >
Hello there i am getting this error - Laracasts
Hello there i am getting this error: `[Vue warn]: Property or method "message" is not defined on the instance but referenced during render....
Read more >
[vue3] Property xxx was accessed during render but is not ...
In Vue.js, the error generally means you are referring to a variable which could be a data, prop, method or computed property in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found