mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Merge pull request #12360 from calixteman/12359
Reset cursor position when focus is out of text field
This commit is contained in:
commit
8cfcd7a488
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue