From 83458ae710871f90852d5db0a976ed81bbb6648b Mon Sep 17 00:00:00 2001 From: Yoshie Muranaka Date: Thu, 18 Jun 2020 14:01:57 -0700 Subject: 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 Change-Id: I315542aae3d53a169767fda0407d8379d1b13027 --- src/components/Global/Search.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/components/Global') 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'); } } -- cgit v1.2.3