We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eac24ee commit df7b49aCopy full SHA for df7b49a
src/lib/index.jsx
@@ -146,7 +146,7 @@ class OtpInput extends Component<Props, State> {
146
if (typeof placeholder === 'string') {
147
if (placeholder.length === 1) return placeholder.repeat(numInputs);
148
else if (placeholder.length === numInputs) return placeholder;
149
- else console.error('Invalid placeholder length');
+ else console.error('Length of the placeholder should be either 1 or equal to the number of inputs');
150
}
151
return;
152
};
0 commit comments