Use min and max from spec in number field

This commit is contained in:
Lukas Martinelli
2016-12-21 10:31:38 +01:00
parent bc05c11cef
commit 2a34424898
2 changed files with 10 additions and 2 deletions

View File

@@ -49,8 +49,8 @@ export default class SpecField extends React.Component {
<NumberField
{...commonProps}
default={this.props.fieldSpec.default}
min={this.props.fieldSpec.min}
max={this.props.fieldSpec.max}
min={this.props.fieldSpec.minimum}
max={this.props.fieldSpec.maximum}
unit={this.props.fieldSpec.unit}
/>
)