Merge pull request #15244 from calixteman/15241

[Editor] Add an editor in the annotation storage only when it's non-empty (#15241)
This commit is contained in:
Jonas Jenwald 2022-07-29 20:58:53 +02:00 committed by GitHub
commit ee8fab929c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 34 additions and 3 deletions

View file

@ -469,6 +469,8 @@ class InkEditor extends AnnotationEditor {
return;
}
super.commit();
this.isEditing = false;
this.disableEditMode();
@ -572,6 +574,8 @@ class InkEditor extends AnnotationEditor {
"pointermove",
this.#boundCanvasPointermove
);
this.parent.addToAnnotationStorage(this);
}
/**