Skip to content

Commit a9753ec

Browse files
committed
change hide show default value
1 parent a1da318 commit a9753ec

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/app.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class App extends React.PureComponent {
4949
const showVal = typeof showIcon === "string" ? showIcon : showIcon();
5050
return (
5151
<div className={"react-password-toggle-icon-wrapper"+" "+parentClassName} onClick={() => this.handleClick(inputRef)} style={{...defaultStyle,...style}}>
52-
{isVisible ? hideVal : showVal}
52+
{!isVisible ? hideVal : showVal}
5353
</div>
5454
);
5555
}
@@ -58,8 +58,8 @@ class App extends React.PureComponent {
5858
export default App;
5959

6060
App.defaultProps = {
61-
showIcon:"Hide",
62-
hideIcon:"Show",
61+
showIcon:"Show",
62+
hideIcon:"Hide",
6363
inputRef:"",
6464
parentClassName: "",
6565
isVisible:"false"

0 commit comments

Comments
 (0)