Skip to content

Commit

Permalink
update hook name
Browse files Browse the repository at this point in the history
  • Loading branch information
dtnaughton committed Dec 5, 2022
1 parent 2be38c1 commit bf52d88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.exports = (options) => ({
return {
name: "select-hooks.js",
content: `export default {
onPageChange: ${hooks.onPageChange || nullHook}
onSelectSearchBox: ${hooks.onSelectSearchBox || nullHook}
}`
};
},
Expand Down
2 changes: 1 addition & 1 deletion src/SearchBox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export default {
const path = this.suggestions[i].path
if (this.$route.path !== path) {
hooks.onPageChange(this.query, this.$route.path, path);
hooks.onSelectSearchBox(this.query, this.$route.path, path);
this.$router.push(this.suggestions[i].path)
}
Expand Down

0 comments on commit bf52d88

Please sign in to comment.