The latest annotation created will steal focus when the subject area triggers an action.
When annotating on a video, the annotation appears normal. But when the video is played back and hits the timeStamp where the annotation was created, the focus is removed from the video controller and focus is now on the annotation.
To Reproduce
Steps to reproduce the behavior:
Checkout the master branch
In a terminal, run yarn bootstrap
Once complete, cd to packages/lib-classifier and run yarn dev
Create a Temporal Drawing annotation: A Temporal Point or TemporalRotateRectangle
Note: the annotation is active and this is normal and expected.
Play the video from the beginning
Note: Initially, when the video starts, focus is on the Play button. But when the video plays the timestamp where the annotation was created, focus is now on the annotation
Expected behavior
When playing a video, focus should remain on the Video Controller for accessibility reasons.
Screenshots
Three states of the annotation: inactive, active and focus
Possible Solution
Needs proper active drawing tool cleanup on the component unmount. The active mark is not being reset.
Package
lib-classifier
Describe the bug
The latest annotation created will steal focus when the subject area triggers an action. When annotating on a video, the annotation appears normal. But when the video is played back and hits the timeStamp where the annotation was created, the focus is removed from the video controller and focus is now on the annotation.
To Reproduce
Steps to reproduce the behavior:
master
branchyarn bootstrap
packages/lib-classifier
and runyarn dev
active
and this is normal and expected.Play
button. But when the video plays the timestamp where the annotation was created, focus is now on the annotationExpected behavior
When playing a video, focus should remain on the Video Controller for accessibility reasons.
Screenshots
Three states of the annotation: inactive, active and focus
Possible Solution
Needs proper active drawing tool cleanup on the component unmount. The active
mark
is not being reset.