Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Mirador Video
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This project is archived. Its data is
read-only
.
Show more breadcrumbs
IIIF
Mirador
Mirador Video
Commits
7418127d
Commit
7418127d
authored
Jan 9, 2024
by
Anthony
Browse files
Options
Downloads
Patches
Plain Diff
WIP Commit de la victoire, need to be cleaned
parent
9f36a451
No related branches found
No related tags found
1 merge request
!20
Fix ref forwarding from Mirador to Mirador CanvasAnnotationPlugin
Pipeline
#1681
failed
Jan 9, 2024
Stage: test
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/components/CanvasAnnotations.js
+2
-0
2 additions, 0 deletions
src/components/CanvasAnnotations.js
src/components/WindowSideBarAnnotationsPanel.js
+1
-4
1 addition, 4 deletions
src/components/WindowSideBarAnnotationsPanel.js
with
3 additions
and
4 deletions
src/components/CanvasAnnotations.js
+
2
−
0
View file @
7418127d
...
...
@@ -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
}
...
...
...
...
This diff is collapsed.
Click to expand it.
src/components/WindowSideBarAnnotationsPanel.js
+
1
−
4
View file @
7418127d
...
...
@@ -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
(
...
...
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment