diff --git a/src/display/annotation_layer.js b/src/display/annotation_layer.js index 882c0be62d014..6bac96d04e8bf 100644 --- a/src/display/annotation_layer.js +++ b/src/display/annotation_layer.js @@ -466,6 +466,10 @@ class TextWidgetAnnotationElement extends WidgetAnnotationElement { storage.setValue(id, event.target.value); }); + element.addEventListener("blur", function (event) { + event.target.setSelectionRange(0, 0); + }); + element.disabled = this.data.readOnly; element.name = this.data.fieldName;