[Editor] Avoid to have a null button in the DOM when there's no comment manager
This commit is contained in:
parent
8ba18075f2
commit
16d0077387
@ -1177,6 +1177,9 @@ class AnnotationEditor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
addStandaloneCommentButton() {
|
addStandaloneCommentButton() {
|
||||||
|
if (!this._uiManager.hasCommentManager()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (this.#commentStandaloneButton) {
|
if (this.#commentStandaloneButton) {
|
||||||
if (this._uiManager.isEditingMode()) {
|
if (this._uiManager.isEditingMode()) {
|
||||||
this.#commentStandaloneButton.classList.remove("hidden");
|
this.#commentStandaloneButton.classList.remove("hidden");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user