From e5196f79bf8441e3ff5d9c844d36f8979c4a3148 Mon Sep 17 00:00:00 2001 From: Kimmo Puputti Date: Wed, 31 May 2017 10:56:06 +0300 Subject: [PATCH] Support injecting classes to parts of the input --- .../LocationAutocompleteInput.js | 40 ++++++++++++++----- src/containers/SearchForm/SearchForm.js | 2 +- 2 files changed, 32 insertions(+), 10 deletions(-) diff --git a/src/components/LocationAutocompleteInput/LocationAutocompleteInput.js b/src/components/LocationAutocompleteInput/LocationAutocompleteInput.js index 0f5c205d..6855e1cd 100644 --- a/src/components/LocationAutocompleteInput/LocationAutocompleteInput.js +++ b/src/components/LocationAutocompleteInput/LocationAutocompleteInput.js @@ -17,7 +17,7 @@ const DIRECTION_DOWN = 'down'; // Renders the autocompletion prediction results in a list const LocationPredictionsList = props => { - const { predictions, highlightedIndex, onSelectStart, onSelectEnd } = props; + const { className, predictions, highlightedIndex, onSelectStart, onSelectEnd } = props; if (predictions.length === 0) { return null; } @@ -41,8 +41,10 @@ const LocationPredictionsList = props => { }; /* eslint-enable jsx-a11y/no-static-element-interactions */ + const classes = classNames(css.predictions, className); + return ( -