Merge 68076af0e46aed46de40a469c44af4979e6cf31c into 520363b350648ea066b4bd6b3d5697398a7e4096

This commit is contained in:
calixteman 2025-10-28 04:45:09 +08:00 committed by GitHub
commit 190114e12b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2167,7 +2167,7 @@ class AnnotationEditor {
if (this.div?.contains(document.activeElement)) {
// Don't use this.div.blur() because we don't know where the focus will
// go.
this._uiManager.currentLayer.div.focus({
this.currentLayer?.div.focus({
preventScroll: true,
});
}