diff --git a/src/components/inputs/NumberInput.jsx b/src/components/inputs/NumberInput.jsx index 32e210ba..a93db932 100644 --- a/src/components/inputs/NumberInput.jsx +++ b/src/components/inputs/NumberInput.jsx @@ -10,6 +10,7 @@ class NumberInput extends React.Component { onChange: PropTypes.func, allowRange: PropTypes.bool, rangeStep: PropTypes.number, + wdKey: PropTypes.string, } static defaultProps = { @@ -107,6 +108,13 @@ class NumberInput extends React.Component { } render() { + let wdProps = {}; + if (this.props.wdKey) { + wdProps = { + "data-wd-key": this.props.wdKey + }; + } + if( this.props.hasOwnProperty("min") && this.props.hasOwnProperty("max") && this.props.min !== undefined && this.props.max !== undefined && @@ -146,6 +154,7 @@ class NumberInput extends React.Component { this.changeValue(e.target.value) }} onBlur={this.resetValue} + {...wdProps} /> } @@ -159,6 +168,7 @@ class NumberInput extends React.Component { value={this.state.value} onChange={e => this.changeValue(e.target.value)} onBlur={this.resetValue} + {...wdProps} /> } diff --git a/src/components/layers/MaxZoomBlock.jsx b/src/components/layers/MaxZoomBlock.jsx index 74475935..99924aa5 100644 --- a/src/components/layers/MaxZoomBlock.jsx +++ b/src/components/layers/MaxZoomBlock.jsx @@ -12,10 +12,9 @@ class MaxZoomBlock extends React.Component { } render() { - return + return + return