summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYoshie Muranaka <yoshiemuranaka@gmail.com>2020-06-19 00:01:57 +0300
committerDerick Montague <derick.montague@ibm.com>2020-06-26 00:32:09 +0300
commit83458ae710871f90852d5db0a976ed81bbb6648b (patch)
tree88f2f7af3b2d852bcb7453c684b7ec9e0764140d /src
parentf2cec7529040013ae50bc7768463aac280df491f (diff)
downloadwebui-vue-83458ae710871f90852d5db0a976ed81bbb6648b.tar.xz
Fix Search component default prop validation
Changed placeholder prop validation to use a regular function instead of an arrow function to fix undefined errors where 'this' is undefined. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I315542aae3d53a169767fda0407d8379d1b13027
Diffstat (limited to 'src')
-rw-r--r--src/components/Global/Search.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/Global/Search.vue b/src/components/Global/Search.vue
index d3050170..b4be4637 100644
--- a/src/components/Global/Search.vue
+++ b/src/components/Global/Search.vue
@@ -30,7 +30,7 @@ export default {
props: {
placeholder: {
type: String,
- default: () => {
+ default: function() {
return this.$t('global.form.search');
}
}