From 1fec89b69e97656010d47f48ad870b42bbd67ff1 Mon Sep 17 00:00:00 2001 From: orangemug Date: Tue, 21 May 2019 19:07:28 +0100 Subject: [PATCH] Moved back to data-wd-key approach and fixed tests --- src/components/inputs/NumberInput.jsx | 11 ++--------- src/components/layers/MaxZoomBlock.jsx | 5 +++-- src/components/layers/MinZoomBlock.jsx | 5 +++-- test/functional/layers/index.js | 4 ++-- 4 files changed, 10 insertions(+), 15 deletions(-) diff --git a/src/components/inputs/NumberInput.jsx b/src/components/inputs/NumberInput.jsx index a93db932..58b08668 100644 --- a/src/components/inputs/NumberInput.jsx +++ b/src/components/inputs/NumberInput.jsx @@ -108,13 +108,6 @@ 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 +139,7 @@ class NumberInput extends React.Component { /> } @@ -162,13 +155,13 @@ class NumberInput extends React.Component { return
this.changeValue(e.target.value)} onBlur={this.resetValue} - {...wdProps} />
} diff --git a/src/components/layers/MaxZoomBlock.jsx b/src/components/layers/MaxZoomBlock.jsx index 99924aa5..74475935 100644 --- a/src/components/layers/MaxZoomBlock.jsx +++ b/src/components/layers/MaxZoomBlock.jsx @@ -12,9 +12,10 @@ class MaxZoomBlock extends React.Component { } render() { - return + return + return