mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-28 16:41:17 +01:00
Added missing shouldItemRender to <Autocomplete/>. #219
This commit is contained in:
parent
a33d1b819c
commit
721f9b36b3
1 changed files with 3 additions and 0 deletions
|
@ -70,6 +70,9 @@ class AutocompleteInput extends React.Component {
|
|||
getItemValue={(item) => item[0]}
|
||||
onSelect={v => this.props.onChange(v)}
|
||||
onChange={(e, v) => this.props.onChange(v)}
|
||||
shouldItemRender={(item, value) => {
|
||||
return item[0].toLowerCase().indexOf(value.toLowerCase()) > -1
|
||||
}}
|
||||
renderItem={(item, isHighlighted) => (
|
||||
<div
|
||||
key={item[0]}
|
||||
|
|
Loading…
Reference in a new issue