mirror of
https://github.com/danog/react-datalist-input.git
synced 2024-12-03 09:57:50 +01:00
cleanup
This commit is contained in:
parent
9ee835e68f
commit
7924ed82a0
@ -165,7 +165,7 @@ class DataListInput extends React.Component {
|
||||
const reachedRequiredLength = currentInput.length >= requiredInputLength;
|
||||
return (
|
||||
<div className="datalist-input">
|
||||
{ this.renderInputField( placeholder, valu, inputClassName ) }
|
||||
{ this.renderInputField( placeholder, currentInput, inputClassName ) }
|
||||
{ reachedRequiredLength && visible &&
|
||||
this.renderItems( matchingItems, focusIndex, activeItemClassName, itemClassName )
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "react-datalist-input",
|
||||
"version": "1.0.5",
|
||||
"version": "1.0.7",
|
||||
"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": "build/index.js",
|
||||
"repository": {
|
||||
|
@ -5,16 +5,13 @@
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
input {
|
||||
.autocomplete-input {
|
||||
border: 1px solid transparent;
|
||||
background-color: #f1f1f1;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
input[type=text] {
|
||||
background-color: #f1f1f1;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.datalist-items {
|
||||
position: absolute;
|
||||
border: 1px solid #d4d4d4;
|
||||
|
@ -176,7 +176,7 @@ class DataListInput extends React.Component {
|
||||
const reachedRequiredLength = currentInput.length >= requiredInputLength;
|
||||
return (
|
||||
<div className="datalist-input">
|
||||
{ this.renderInputField( placeholder, valu, inputClassName ) }
|
||||
{ this.renderInputField( placeholder, currentInput, inputClassName ) }
|
||||
{ reachedRequiredLength && visible &&
|
||||
this.renderItems( matchingItems, focusIndex, activeItemClassName, itemClassName )
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user