Skip to content

Commit 4137932

Browse files
authored
fix: input-password prevent caret position (#2420)
1 parent 5108f67 commit 4137932

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

components/input/Password.jsx

+5
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ export default {
6060
// https://github.com/ant-design/ant-design/issues/15173
6161
e.preventDefault();
6262
},
63+
mouseup: e => {
64+
// Prevent focused state lost
65+
// https://github.com/ant-design/ant-design/pull/23633/files
66+
e.preventDefault();
67+
},
6368
},
6469
class: `${prefixCls}-icon`,
6570
key: 'passwordIcon',

0 commit comments

Comments
 (0)