mirror of
https://github.com/danog/react-datalist-input.git
synced 2024-12-02 17:37:50 +01:00
allow key to be string or number
This commit is contained in:
parent
cdfa4c5124
commit
2f29e099c6
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "react-datalist-input",
|
"name": "react-datalist-input",
|
||||||
"version": "1.1.27",
|
"version": "1.1.28",
|
||||||
"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",
|
||||||
|
@ -297,7 +297,10 @@ DataListInput.propTypes = {
|
|||||||
items: PropTypes.arrayOf(
|
items: PropTypes.arrayOf(
|
||||||
PropTypes.shape( {
|
PropTypes.shape( {
|
||||||
label: PropTypes.string.isRequired,
|
label: PropTypes.string.isRequired,
|
||||||
key: PropTypes.number.isRequired,
|
key: PropTypes.oneOfType(
|
||||||
|
PropTypes.string,
|
||||||
|
PropTypes.number,
|
||||||
|
).isRequired,
|
||||||
} ),
|
} ),
|
||||||
).isRequired,
|
).isRequired,
|
||||||
placeholder: PropTypes.string,
|
placeholder: PropTypes.string,
|
||||||
|
Loading…
Reference in New Issue
Block a user