Skip to content

Commit

Permalink
Merge pull request #15275 from calixteman/textbox
Browse files Browse the repository at this point in the history
[Editor] Remove some a11y properties only useful when a FreeText editor is edited
  • Loading branch information
Snuffleupagus authored Aug 5, 2022
2 parents e88c90e + fce83f8 commit d6d4653
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/display/editor/freetext.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ class FreeTextEditor extends AnnotationEditor {
this.parent.setEditingState(false);
this.parent.updateToolbar(AnnotationEditorType.FREETEXT);
super.enableEditMode();
this.enableEditing();
this.overlayDiv.classList.remove("enabled");
this.editorDiv.contentEditable = true;
this.div.draggable = false;
Expand All @@ -242,6 +243,7 @@ class FreeTextEditor extends AnnotationEditor {

this.parent.setEditingState(true);
super.disableEditMode();
this.disableEditing();
this.overlayDiv.classList.add("enabled");
this.editorDiv.contentEditable = false;
this.div.draggable = true;
Expand Down

0 comments on commit d6d4653

Please sign in to comment.