We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1da318 commit a9753ecCopy full SHA for a9753ec
1 file changed
src/app.js
@@ -49,7 +49,7 @@ class App extends React.PureComponent {
49
const showVal = typeof showIcon === "string" ? showIcon : showIcon();
50
return (
51
<div className={"react-password-toggle-icon-wrapper"+" "+parentClassName} onClick={() => this.handleClick(inputRef)} style={{...defaultStyle,...style}}>
52
- {isVisible ? hideVal : showVal}
+ {!isVisible ? hideVal : showVal}
53
</div>
54
);
55
}
@@ -58,8 +58,8 @@ class App extends React.PureComponent {
58
export default App;
59
60
App.defaultProps = {
61
- showIcon:"Hide",
62
- hideIcon:"Show",
+ showIcon:"Show",
+ hideIcon:"Hide",
63
inputRef:"",
64
parentClassName: "",
65
isVisible:"false"
0 commit comments