diff --git a/src/components/Search/Search.js b/src/components/Search/Search.js index 8e2f933f2..bf6fa3dc4 100644 --- a/src/components/Search/Search.js +++ b/src/components/Search/Search.js @@ -45,7 +45,7 @@ function Search(props) { evt.persist(); evt.imaginaryTarget = _inputRef; setValue(evt.target.value); - onChange(parseFloat(evt.target.value), evt); + onChange(evt.target.value, evt); } }; @@ -55,7 +55,6 @@ function Search(props) { onChange(valueState); }; - const numberInputClasses = classNames(`${prefix}--number`, className, { [`${prefix}--number--light`]: light, [`${prefix}--number--helpertext`]: helperText, @@ -76,7 +75,6 @@ function Search(props) { value: value, }; - const clearClasses = classNames({ 'wfp--search-close': true, 'wfp--search-close--hidden': !value, @@ -139,13 +137,13 @@ Search.propTypes = { */ id: PropTypes.string.isRequired, - /** + /** * Generic `label` that will be used as the textual representation of what * this field is for */ labelText: PropTypes.node, - /** + /** * The new value is available in 'imaginaryTarget.value' * i.e. to get the value: evt.imaginaryTarget.value */