diff --git a/src/display/annotation_layer.js b/src/display/annotation_layer.js index 84b3875cd..57370d358 100644 --- a/src/display/annotation_layer.js +++ b/src/display/annotation_layer.js @@ -668,7 +668,8 @@ class TextWidgetAnnotationElement extends WidgetAnnotationElement { if (elementData.formattedValue) { event.target.value = elementData.formattedValue; } - event.target.setSelectionRange(0, 0); + // Reset the cursor position to the start of the field (issue 12359). + event.target.scrollLeft = 0; elementData.beforeInputSelectionRange = null; };