From 732b02bc41bd5c094c09ee757672b4e86951d4db Mon Sep 17 00:00:00 2001 From: yihan_dai Date: Mon, 20 Apr 2026 12:22:53 +0800 Subject: [PATCH] fix:add conditions in textInputChecker. If a page containing pdf.js,som PASSWORD TYPE INPUTS will be prevented from DEFAULT ACTIONS(like deleting). --- src/display/editor/tools.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/display/editor/tools.js b/src/display/editor/tools.js index 331d9ab43b440..11055799d0f5a 100644 --- a/src/display/editor/tools.js +++ b/src/display/editor/tools.js @@ -793,7 +793,7 @@ class AnnotationEditorUIManager { const textInputChecker = (_self, { target: el }) => { if (el instanceof HTMLInputElement) { const { type } = el; - return type !== "text" && type !== "number"; + return type !== "text" && type !== "number" && type !== "password"; } return true; };