mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-27 10:45:23 +01:00
Set default value of autocomplete shouldItemRender value param as sometimes it's undefined
This commit is contained in:
parent
a666f86be0
commit
889005de6c
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ 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) => {
|
||||
shouldItemRender={(item, value="") => {
|
||||
return item[0].toLowerCase().indexOf(value.toLowerCase()) > -1
|
||||
}}
|
||||
renderItem={(item, isHighlighted) => (
|
||||
|
|
Loading…
Reference in a new issue