mirror of
https://github.com/danog/react-datalist-input.git
synced 2024-12-02 09:27:53 +01:00
debugging
This commit is contained in:
parent
2f29e099c6
commit
dee006b2ff
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "react-datalist-input",
|
||||
"version": "1.1.28",
|
||||
"version": "1.1.29",
|
||||
"description": "This package provides a react component as follows: an input field with a drop down menu to pick a possible option based on the current input.",
|
||||
"main": "./lib/DataListInput.js",
|
||||
"license": "MIT",
|
||||
|
@ -132,7 +132,7 @@ class DataListInput extends React.Component {
|
||||
indexOfMatch = ( currentInput, item ) => item
|
||||
.label.toUpperCase().indexOf( currentInput.toUpperCase() );
|
||||
|
||||
indexOfItem = ( item, items ) => items.indexOf( items.find( i => i.id === item.id ) )
|
||||
indexOfItem = ( item, items ) => items.indexOf( items.find( i => i.key === item.key ) )
|
||||
|
||||
/**
|
||||
* handle key events
|
||||
|
Loading…
Reference in New Issue
Block a user