react-typeahead
Advanced tools
Comparing version
@@ -52,3 +52,4 @@ var Accessor = require('../accessor'); | ||
resultsTruncatedMessage: PropTypes.string, | ||
defaultClassNames: PropTypes.bool | ||
defaultClassNames: PropTypes.bool, | ||
showOptionsWhenEmpty: PropTypes.bool | ||
}, | ||
@@ -87,3 +88,4 @@ | ||
onTokenAdd: function () {}, | ||
onTokenRemove: function () {} | ||
onTokenRemove: function () {}, | ||
showOptionsWhenEmpty: false | ||
}; | ||
@@ -211,3 +213,4 @@ }, | ||
filterOption: this.props.filterOption, | ||
searchOptions: this.props.searchOptions }) | ||
searchOptions: this.props.searchOptions, | ||
showOptionsWhenEmpty: this.props.showOptionsWhenEmpty }) | ||
); | ||
@@ -214,0 +217,0 @@ } |
{ | ||
"name": "react-typeahead", | ||
"version": "2.0.0-alpha.7", | ||
"version": "2.0.0-alpha.8", | ||
"description": "React-based typeahead and typeahead-tokenizer", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -396,2 +396,9 @@ # react-typeahead | ||
#### props.showOptionsWhenEmpty | ||
Type: `boolean` | ||
Default: false | ||
If true, options will still be rendered when there is no value. | ||
### Tokenizer ([Exposed Component Functions][reactecf]) | ||
@@ -398,0 +405,0 @@ |
@@ -59,3 +59,4 @@ var Accessor = require('../accessor'); | ||
resultsTruncatedMessage: PropTypes.string, | ||
defaultClassNames: PropTypes.bool | ||
defaultClassNames: PropTypes.bool, | ||
showOptionsWhenEmpty: PropTypes.bool, | ||
}, | ||
@@ -92,3 +93,4 @@ | ||
onTokenAdd: function() {}, | ||
onTokenRemove: function() {} | ||
onTokenRemove: function() {}, | ||
showOptionsWhenEmpty: false, | ||
}; | ||
@@ -217,3 +219,4 @@ }, | ||
filterOption={this.props.filterOption} | ||
searchOptions={this.props.searchOptions} /> | ||
searchOptions={this.props.searchOptions} | ||
showOptionsWhenEmpty={this.props.showOptionsWhenEmpty} /> | ||
</div> | ||
@@ -220,0 +223,0 @@ ); |
Sorry, the diff of this file is too big to display
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
298242
89.44%5706
57.28%462
1.54%31
1450%