Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

Commit

Permalink
fix(components): forward missing props in SearchBox and VoiceSearch (#…
Browse files Browse the repository at this point in the history
…1136)

fixes #1135
  • Loading branch information
Haroenv committed Jul 25, 2022
1 parent 450fa65 commit 7f8754d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/components/SearchBox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ export default {
type: String,
default: undefined,
},
queryHook: {
type: Function,
default: undefined,
},
},
data() {
return {
Expand All @@ -129,6 +133,11 @@ export default {
};
},
computed: {
widgetParams() {
return {
queryHook: this.queryHook,
};
},
isControlled() {
return (
typeof this.value !== 'undefined' ||
Expand Down
10 changes: 10 additions & 0 deletions src/components/VoiceSearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,14 @@ export default {
required: false,
default: undefined,
},
language: {
type: String,
default: undefined,
},
additionalQueryParameters: {
type: Object,
default: undefined,
},
buttonTitle: {
type: String,
required: false,
Expand Down Expand Up @@ -130,6 +138,8 @@ export default {
widgetParams() {
return {
searchAsYouSpeak: this.searchAsYouSpeak,
language: this.language,
additionalQueryParameters: this.additionalQueryParameters,
};
},
errorNotAllowed() {
Expand Down

0 comments on commit 7f8754d

Please sign in to comment.