fix(components): [slider] prevent default event when bind keydown event (#1038)

This commit is contained in:
betavs 2023-12-14 16:03:11 +08:00 committed by GitHub
parent 60729f8898
commit 013ac583bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -38,6 +38,8 @@ export const bindKeyDown =
return
}
event.preventDefault()
let currentValue = 0
switch (event.keyCode) {