Skip to content
Snippets Groups Projects
Commit 7418127d authored by Anthony's avatar Anthony
Browse files

WIP Commit de la victoire, need to be cleaned

parent 9f36a451
No related branches found
No related tags found
1 merge request!20Fix ref forwarding from Mirador to Mirador CanvasAnnotationPlugin
Pipeline #1681 failed
......@@ -153,6 +153,7 @@ export class CanvasAnnotations extends Component {
selected={selectedAnnotationId === annotation.id}
>
<MenuItem
component={listContainerComponent}
variant="multiline"
divider
sx={{
......@@ -161,6 +162,7 @@ export class CanvasAnnotations extends Component {
},
backgroundColor: hoveredAnnotationIds.includes(annotation.id) ? 'action.hover' : '',
}}
ref={containerRef}
key={annotation.id}
annotationid={annotation.id}
selected={selectedAnnotationId === annotation.id}
......
......
......@@ -19,10 +19,7 @@ function WindowSideBarAnnotationsPanel({
useEffect(() => {
console.log(`Use effect ${containerRef}`);
console.log(`Use effect ${containerRef.current}`);
if(containerRef.current) {
containerRef.current.focus();
}
console.log(`Use effect current ${containerRef.current}`);
});
return (
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment