Skip to content

$listeners removed from Vue3 #27

@yusrenaltair

Description

@yusrenaltair

Thank you for this awesome package.
I'm using Vue3 v3.2.26 with jw-vue-pagination v1.0.3
turns out

created() {
  if (!this.$listeners.changePage) {
    throw 'Missing required event listener: "changePage"';
  }
//...
}

this.$listeners.changePage removed from Vue3; produce error
need to modify this line to run on Vue3
https://v3.vuejs.org/guide/migration/listeners-removed.html

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'changePage')
Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions