We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0afa62 commit 50c6eeeCopy full SHA for 50c6eee
packages/ve-pagination/src/index.jsx
@@ -96,7 +96,7 @@ export default {
96
if (event.keyCode !== 13) return;
97
98
var val = this.$parent.getValidNum(event.target.value);
99
- this.$parent.newPageIndex = val;
+ this.$parent.jumpPageHandler(val);
100
}
101
},
102
render(h) {
tests/unit/specs/ve-pagination.spec.js
@@ -286,5 +286,8 @@ describe("vePagination", () => {
286
expect(
287
wrapper.find(".ve-pagination-li-active.ve-pagination-li").text()
288
).toBe("2");
289
+
290
+ expect(wrapper.emitted("on-page-number-change").length).toEqual(1);
291
+ expect(wrapper.emitted("on-page-number-change")[0]).toEqual([2]);
292
});
293
0 commit comments