mirror of
https://github.com/danog/react-datalist-input.git
synced 2024-12-02 09:27:53 +01:00
this
This commit is contained in:
parent
b154d2ee09
commit
1f410009bc
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "react-datalist-input",
|
||||
"version": "1.1.22",
|
||||
"version": "1.1.23",
|
||||
"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",
|
||||
|
@ -71,7 +71,7 @@ class DataListInput extends React.Component {
|
||||
const displayableItems = matchingItems.length
|
||||
? matchingItems : items.slice( 0, dropDownLength )
|
||||
let index = lastValidItem && !clearInputOnSelect
|
||||
? indexOfItem( lastValidItem, displayableItems ) : 0;
|
||||
? this.indexOfItem( lastValidItem, displayableItems ) : 0;
|
||||
index = index > 0 ? index : 0;
|
||||
this.setState( { visible: true, matchingItems: displayableItems, focusIndex: index, } );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user