Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ class SmoothPinCodeInput extends Component {

// handle password mask
const maskDelay = password &&
code.length > this.props.value.length; // only when input new char
code.length > this.props.value.length && // only when input new char
this.props.maskDelay > 0; // only if maskDelay is not 0

this.setState({ maskDelay });

if (maskDelay) { // mask password after delay
Expand Down