File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
debugger/components/debugger-toolbar Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -23,10 +23,6 @@ export const DebuggerToolbarComponent: React.FC<
23
23
const setActiveWidget$ = useDebuggerStore ( ( state ) => state . setActiveWidget$ ) ;
24
24
const isDecoder = activeWidget$ === DebuggerWidgetValues . DECODER ;
25
25
26
- useEffect ( ( ) => {
27
- tabRefs . current [ isDecoder ? 0 : 1 ] ?. focus ( ) ;
28
- } , [ isDecoder ] ) ;
29
-
30
26
const handleKeyDown = ( e : React . KeyboardEvent < HTMLLIElement > ) => {
31
27
const { key } = e ;
32
28
Original file line number Diff line number Diff line change 1
- import React from "react" ;
1
+ import React , { useEffect } from "react" ;
2
2
import { EditorComponent } from "@/features/common/components/code-editor/editor.component" ;
3
3
4
4
interface JwtEditorComponentProps {
@@ -14,6 +14,8 @@ export const JwtEditorComponent: React.FC<JwtEditorComponentProps> = ({
14
14
< EditorComponent
15
15
aria-label = "JWT editor input"
16
16
value = { token }
17
+ autoFocus
18
+ focusOnWindowFocus
17
19
onValueChange = { ( code ) => handleJwtChange ( code ) }
18
20
highlight = { ( code ) => {
19
21
if ( ! code ) {
You can’t perform that action at this time.
0 commit comments