debugging

This commit is contained in:
Andre Landgraf 2019-06-17 20:06:08 +02:00
parent 2f29e099c6
commit dee006b2ff
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "react-datalist-input", "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.", "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", "main": "./lib/DataListInput.js",
"license": "MIT", "license": "MIT",

View File

@ -132,7 +132,7 @@ class DataListInput extends React.Component {
indexOfMatch = ( currentInput, item ) => item indexOfMatch = ( currentInput, item ) => item
.label.toUpperCase().indexOf( currentInput.toUpperCase() ); .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 * handle key events