0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -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') {
callback[key]?.(event);
if (callback[key]) {
event.preventDefault();
}
}
};