0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-06 20:40:08 -05:00

fix(ui): fix tab key not working bug (#2261)

This commit is contained in:
simeng-li 2022-10-27 13:46:01 +08:00 committed by GitHub
parent 73d1d4a649
commit feccf2b519
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,6 +19,9 @@ export const onKeyDownHandler =
if (typeof callback === 'object') { if (typeof callback === 'object') {
callback[key]?.(event); callback[key]?.(event);
event.preventDefault();
if (callback[key]) {
event.preventDefault();
}
} }
}; };