fix: input-password prevent caret position (#2420)

This commit is contained in:
孙运天 2020-06-12 22:02:11 +08:00 committed by GitHub
parent 5108f67c11
commit 413793234b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,6 +60,11 @@ export default {
// https://github.com/ant-design/ant-design/issues/15173
e.preventDefault();
},
mouseup: e => {
// Prevent focused state lost
// https://github.com/ant-design/ant-design/pull/23633/files
e.preventDefault();
},
},
class: `${prefixCls}-icon`,
key: 'passwordIcon',