Added range slider to <NumberInput />

This commit is contained in:
orangemug
2018-10-30 20:35:22 +00:00
parent 3d2a1d5d19
commit cdd5d27908
3 changed files with 38 additions and 8 deletions

View File

@@ -16,6 +16,7 @@ class MaxZoomBlock extends React.Component {
data-wd-key="max-zoom"
>
<NumberInput
allowRange={true}
value={this.props.value}
onChange={this.props.onChange}
min={latest.layer.maxzoom.minimum}

View File

@@ -16,6 +16,7 @@ class MinZoomBlock extends React.Component {
data-wd-key="min-zoom"
>
<NumberInput
allowRange={true}
value={this.props.value}
onChange={this.props.onChange}
min={latest.layer.minzoom.minimum}