Skip to content

Commit 9ca8e22

Browse files
committed
fix: placeholder cast to string
Refs: #20
1 parent 2bfb3e9 commit 9ca8e22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/InputSpinner.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,9 +288,9 @@ class InputSpinner extends Component {
288288
*/
289289
getPlaceholder() {
290290
if (isEmpty(this.props.placeholder)) {
291-
return this.state.min;
291+
return String(this.state.min);
292292
} else {
293-
return this.state.placeholder;
293+
return this.props.placeholder;
294294
}
295295
}
296296

0 commit comments

Comments
 (0)