diff --git a/CHANGELOG.md b/CHANGELOG.md
index e009f260..14d6161f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,23 @@
+
+## [1.0.1](https://github.com/algolia/docsearch/compare/v1.0.0...v1.0.1) (2015-12-24)
+
+
+### Bug Fixes
+
+* **handleSelected:** ensure we're calling setVal on the right object ([31abbd7](https://github.com/algolia/docsearch/commit/31abbd7)), closes [#51](https://github.com/algolia/docsearch/issues/51)
+
+
+
+
+# [1.0.0](https://github.com/algolia/docsearch/compare/v0.0.7...v1.0.0) (2015-12-24)
+
+
+### Bug Fixes
+
+* **isSubCategoryHeader:** ensure we hide the content of the left column if this flag is not set ([0e04ce4](https://github.com/algolia/docsearch/commit/0e04ce4)), closes [#47](https://github.com/algolia/docsearch/issues/47)
+
+
+
## [0.0.7](https://github.com/algolia/docsearch/compare/v0.0.6...v0.0.7) (2015-12-22)
diff --git a/README.md b/README.md
index de79cc5e..79ae023f 100644
--- a/README.md
+++ b/README.md
@@ -25,13 +25,14 @@ Check out our [website][3] to add an outstanding search to your documentation.
## Table of Contents
-- [Introduction][5]
-- [Setup][6]
-- [Customization][7]
-- [Development workflow][8]
- - [Local example][9]
- - [Documentation website][10]
- - [MacOS][11]
+- [Introduction](#introduction)
+- [Setup](#setup)
+- [Customization](#customization)
+- [Development workflow](#development-workflow)
+ - [Local example](#local-example)
+ - [Local build](#local-build)
+ - [Documentation website](#documentation-website)
+ - [MacOS](#macos)
diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json
index 23d229d0..391cfdb8 100644
--- a/npm-shrinkwrap.json
+++ b/npm-shrinkwrap.json
@@ -1,6 +1,6 @@
{
"name": "docsearch.js",
- "version": "0.0.7",
+ "version": "1.0.1",
"npm-shrinkwrap-version": "200.4.0",
"node-version": "v4.2.2",
"dependencies": {
diff --git a/package.json b/package.json
index c59bf327..a93eb102 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "docsearch.js",
- "version": "0.0.7",
+ "version": "1.0.1",
"description": "Add an autocomplete dropdown to your documentation",
"main": "dist/npm/index.js",
"scripts": {
diff --git a/src/lib/DocSearch.js b/src/lib/DocSearch.js
index a1bdf050..e280c637 100644
--- a/src/lib/DocSearch.js
+++ b/src/lib/DocSearch.js
@@ -58,7 +58,7 @@ class DocSearch {
footer: templates.footer
}
}]);
- this.autocomplete.on('autocomplete:selected', this.handleSelected);
+ this.autocomplete.on('autocomplete:selected', this.handleSelected.bind(null, this.autocomplete.autocomplete));
}
/**
@@ -161,8 +161,8 @@ class DocSearch {
};
}
- handleSelected(event, suggestion) {
- this.autocomplete.autocomplete.setVal('');
+ handleSelected(input, event, suggestion) {
+ input.setVal('');
window.location.href = suggestion.url;
}
}
diff --git a/src/lib/version.js b/src/lib/version.js
index 653c4c00..507d1329 100644
--- a/src/lib/version.js
+++ b/src/lib/version.js
@@ -1 +1 @@
-export default '0.0.7';
+export default '1.0.1';