mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 03:29:59 +08:00
parent
6f22eaa2c4
commit
eaadf94861
@ -44,6 +44,11 @@ export default class Password extends React.Component<PasswordProps, PasswordSta
|
||||
className: `${prefixCls}-icon`,
|
||||
type: this.state.visible ? 'eye-invisible' : 'eye',
|
||||
key: 'passwordIcon',
|
||||
onMouseDown: (e: MouseEvent) => {
|
||||
// Prevent focused state lost
|
||||
// https://github.com/ant-design/ant-design/issues/15173
|
||||
e.preventDefault();
|
||||
},
|
||||
};
|
||||
return <Icon {...iconProps} />;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user