Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] base-pagination component doesn't work properly #10

Open
validol4ik opened this issue Mar 25, 2022 · 0 comments
Open

[Bug] base-pagination component doesn't work properly #10

validol4ik opened this issue Mar 25, 2022 · 0 comments

Comments

@validol4ik
Copy link

Version

1.0.0

Operating System

Ubuntu 21.04

Device

Laptop Acer

Browser & Version

Chrome 99.0.4844.74 (Official Build) (64-bit)

Steps to reproduce

  1. Open any page with pagination
  2. Add watcher on currentPage option and console.log new value of the option
  3. If you change currentPage in the code you will see changes on the page
  4. But if you change the current page in pagination on the page you will see in the console that the currentPage option hasn't changed

What is expected?

When you select page, the currentPage option in the data must be changed

What is actually happening?

currentPage doesn't change because v-model doesn't work (to create v-model on a component you must use prop value and event @input in Vue 2)


Solution

Change the emit event from @change to @input on the base-pagination component

Additional comments

I just added my method for changing the current page using @change event of base-pagination component. But It's not good...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant