diff --git a/app/javascript/dashboard/components/ui/Switch.vue b/app/javascript/dashboard/components/ui/Switch.vue index 7dc4bcbfb..b0bc32881 100644 --- a/app/javascript/dashboard/components/ui/Switch.vue +++ b/app/javascript/dashboard/components/ui/Switch.vue @@ -17,12 +17,8 @@ export default { value: { type: Boolean, default: false }, }, methods: { - onClick(event) { - if (event.pointerId === -1) { - event.preventDefault(); - } else { - this.$emit('input', !this.value); - } + onClick() { + this.$emit('input', !this.value); }, }, }; diff --git a/app/javascript/dashboard/routes/dashboard/settings/inbox/PreChatForm/PreChatFields.vue b/app/javascript/dashboard/routes/dashboard/settings/inbox/PreChatForm/PreChatFields.vue index 9d2691036..b1df3902a 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/inbox/PreChatForm/PreChatFields.vue +++ b/app/javascript/dashboard/routes/dashboard/settings/inbox/PreChatForm/PreChatFields.vue @@ -1,6 +1,6 @@