Skip to content

Commit 732b02b

Browse files
author
yihan_dai
committed
fix:add conditions in textInputChecker. If a page containing pdf.js,som PASSWORD TYPE INPUTS will be prevented from DEFAULT ACTIONS(like deleting).
1 parent 3ccb263 commit 732b02b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/display/editor/tools.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ class AnnotationEditorUIManager {
793793
const textInputChecker = (_self, { target: el }) => {
794794
if (el instanceof HTMLInputElement) {
795795
const { type } = el;
796-
return type !== "text" && type !== "number";
796+
return type !== "text" && type !== "number" && type !== "password";
797797
}
798798
return true;
799799
};

0 commit comments

Comments
 (0)