150 | {renderInput({
151 | required: true,
152 | name: 'currentLocation',
153 | label: 'Current location',
154 | fullWidth: true,
155 | type: 'text',
156 | classes,
157 | InputProps: getInputProps({
158 | autoComplete: 'off',
159 | id: 'currentLocation',
160 | readOnly: this.props.loadingResponse
161 | })
162 | })}
163 |
164 | {isOpen ? (
165 |
166 | {getSuggestions(suggestions, inputValue).map(
167 | (suggestion, index) =>
168 | renderSuggestion({
169 | suggestion,
170 | index,
171 | itemProps: getItemProps({
172 | item: suggestion.description
173 | }),
174 | highlightedIndex,
175 | selectedItem
176 | })
177 | )}
178 |
179 | ) : null}
180 |
181 |
182 | )}
183 |