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:
parent
73d1d4a649
commit
feccf2b519
1 changed files with 4 additions and 1 deletions
|
@ -19,6 +19,9 @@ export const onKeyDownHandler =
|
|||
|
||||
if (typeof callback === 'object') {
|
||||
callback[key]?.(event);
|
||||
event.preventDefault();
|
||||
|
||||
if (callback[key]) {
|
||||
event.preventDefault();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue