mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-03 20:00:20 +03:00
[DOP-3497]: Refactor state
This commit is contained in:
parent
207c3a9780
commit
9c94d434b0
|
@ -53,9 +53,10 @@ const VersionSelectorComponent = ({
|
||||||
const handleFocusChange = (event: React.KeyboardEvent<HTMLDivElement>) => {
|
const handleFocusChange = (event: React.KeyboardEvent<HTMLDivElement>) => {
|
||||||
console.log(event.key);
|
console.log(event.key);
|
||||||
};
|
};
|
||||||
|
// const handleArrowKeys = () => {};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<StyledWrapper ref={menuListRef}>
|
<StyledWrapper ref={menuListRef} onKeyDown={event => console.log(event.currentTarget)}>
|
||||||
<StyledSelectWrapper>
|
<StyledSelectWrapper>
|
||||||
<StyledLabel>Version Selector: v{active.apiVersion}</StyledLabel>
|
<StyledLabel>Version Selector: v{active.apiVersion}</StyledLabel>
|
||||||
{description && <StyledDescription>{description}</StyledDescription>}
|
{description && <StyledDescription>{description}</StyledDescription>}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user