mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-24 10:21:15 +01:00
Fix tauri event listener hook
This commit is contained in:
@@ -39,7 +39,7 @@ export type SidebarModel = Folder | GrpcRequest | HttpRequest;
|
||||
|
||||
export function Sidebar({ className }: Props) {
|
||||
const [hidden, setHidden] = useSidebarHidden();
|
||||
const sidebarRef = useRef<HTMLLIElement>(null);
|
||||
const sidebarRef = useRef<HTMLElement>(null);
|
||||
const activeWorkspace = useActiveWorkspace();
|
||||
const httpResponses = useHttpResponses();
|
||||
const grpcConnections = useGrpcConnections();
|
||||
@@ -326,7 +326,7 @@ export function Sidebar({ className }: Props) {
|
||||
|
||||
return (
|
||||
<aside
|
||||
aria-hidden={hidden}
|
||||
aria-hidden={hidden ?? undefined}
|
||||
ref={sidebarRef}
|
||||
onFocus={handleFocus}
|
||||
onBlur={handleBlur}
|
||||
|
||||
@@ -87,9 +87,9 @@ export function Dialog({
|
||||
)}
|
||||
|
||||
{description ? (
|
||||
<p className="px-6 text-text-subtle" id={descriptionId}>
|
||||
<div className="px-6 text-text-subtle" id={descriptionId}>
|
||||
{description}
|
||||
</p>
|
||||
</div>
|
||||
) : (
|
||||
<span />
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user