New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-typeahead

Package Overview
Dependencies
Maintainers
2
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-typeahead - npm Package Compare versions

Comparing version

to
2.0.0-alpha.8

9

lib/tokenizer/index.js

@@ -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