-
Notifications
You must be signed in to change notification settings - Fork 10.3k
[Editor] Ensure that highlightSelection
waits until we've fully updated the editing-mode (issue 19369)
#19371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
5ade8c7
to
d92b709
Compare
d92b709
to
aba346e
Compare
I experienced the similar issue withing the updateMode when using the PdfViewer component. for some reason the next tool gets enabled before the old one is committed / cleaned up. I'm setting the mode with the setter: set annotationEditorMode can you please also fix it in pdf_viewer.js L2343
|
aba346e
to
fe0de69
Compare
@Snuffleupagus thank you! |
…ated the editing-mode (issue 19369) With the changes in PR 18843 the `AnnotationEditorUIManager.prototype.updateMode` method is now asynchronous, which we need to take into account when dispatching the "annotationeditormodechanged" event.
fe0de69
to
3b4758a
Compare
/botio integrationtest |
From: Bot.io (Linux m4)ReceivedCommand cmd_integrationtest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/3bdc507ef9f123d/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_integrationtest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.193.163.58:8877/e1b4456801a8926/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/3bdc507ef9f123d/output.txt Total script time: 10.49 mins
|
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/e1b4456801a8926/output.txt Total script time: 26.31 mins
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thank you.
With the changes in PR #18843 the
AnnotationEditorUIManager.prototype.updateMode
method is now asynchronous, which we need to take into account when dispatching the "annotationeditormodechanged" event.Edit: I don't know if this is necessarily the "correct" way to address this, but it appears to work.