mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Merge pull request #17907 from calixteman/fix_draw_ink
[Editor] Don't add an already added editor (bug 1890367)
This commit is contained in:
commit
30b65ca067
2 changed files with 44 additions and 0 deletions
|
@ -481,6 +481,9 @@ class AnnotationEditorLayer {
|
|||
* @param {AnnotationEditor} editor
|
||||
*/
|
||||
add(editor) {
|
||||
if (editor.parent === this && editor.isAttachedToDOM) {
|
||||
return;
|
||||
}
|
||||
this.changeParent(editor);
|
||||
this.#uiManager.addEditor(editor);
|
||||
this.attach(editor);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue