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 51a9f36 commit 0b07b8fCopy full SHA for 0b07b8f
src/components/common/FormControl.js
@@ -24,8 +24,8 @@ class FormControl extends Component {
24
};
25
26
getInput = () => {
27
- let { value, placeholder, componentClass, children, rows, inputType } = this.props;
28
- let formControlProps = { value, placeholder, componentClass, rows };
+ let { value, placeholder, componentClass, children, rows, inputType, min, max } = this.props;
+ let formControlProps = { value, placeholder, componentClass, rows, min, max };
29
30
return (
31
<BootstrapFormControl type={inputType} ref="input" onChange={this.handleChange} onBlur={this.handleBlur} {...formControlProps}>
src/components/common/Input.js
@@ -28,9 +28,6 @@ class Input extends Component {
min, max
} = this.props;
- console.info("This is the min -> " + min);
32
- console.info("This is the max -> " + max);
33
-
34
let formGroupProps = {
35
error,
36
touched,
@@ -54,11 +51,13 @@ class Input extends Component {
54
51
onBlur,
55
52
componentClass,
56
53
rows,
+ min,
+ max
57
58
59
60
<FormGroup {...formGroupProps}>
61
- <FormControl {...formControlProps}min={min}max={max}>
+ <FormControl {...formControlProps}>
62
{ children }
63
</FormControl>
64
</FormGroup>
src/components/field/Number.js
@@ -11,7 +11,9 @@ class Number extends Component {
11
error: PropTypes.string,
12
addonBefore: PropTypes.string,
13
addonAfter: PropTypes.string,
14
- fieldLayout: PropTypes.string
+ fieldLayout: PropTypes.string,
15
+ min: PropTypes.number,
16
+ max: PropTypes.number
17
18
19
render() {
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments