Skip to content

Commit 4815ee6

Browse files
authored
fix(Pagination): block default events for the enter key (#7368)
* fix(Pagination): block default events for the enter key * refactor: consider other keyboard events
1 parent 2b41e56 commit 4815ee6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: components/vc-pagination/Pagination.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ export default defineComponent({
283283
},
284284
runIfEnter(event, callback, ...restParams) {
285285
if (event.key === 'Enter' || event.charCode === 13) {
286+
event.preventDefault();
286287
callback(...restParams);
287288
}
288289
},

0 commit comments

Comments
 (0)