mirror of
https://github.com/danog/react-datalist-input.git
synced 2024-12-04 02:17:50 +01:00
bug fixing wild ;
This commit is contained in:
parent
c7579022c2
commit
7d6686cbde
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "react-datalist-input",
|
"name": "react-datalist-input",
|
||||||
"version": "1.1.36",
|
"version": "1.1.37",
|
||||||
"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",
|
||||||
|
@ -264,7 +264,7 @@ class DataListInput extends React.Component {
|
|||||||
{items.map( ( item, i ) => {
|
{items.map( ( item, i ) => {
|
||||||
const isActive = focusIndex === i;
|
const isActive = focusIndex === i;
|
||||||
const itemActiveClasses = isActive ? `datalist-active-item ${ activeItemClassName }` : '';
|
const itemActiveClasses = isActive ? `datalist-active-item ${ activeItemClassName }` : '';
|
||||||
const itemClasses = `${ itemClassName } ${ itemActiveClasses };`;
|
const itemClasses = `${ itemClassName } ${ itemActiveClasses }`;
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
onClick={this.onClickItem}
|
onClick={this.onClickItem}
|
||||||
|
Loading…
Reference in New Issue
Block a user