fix: Pre chat custom fields drag and drop (#4530)

This commit is contained in:
Muhsin Keloth 2022-05-06 12:01:34 +05:30 committed by GitHub
parent 66d366f0ff
commit 4f9d41962a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 28 additions and 15 deletions

View file

@ -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);
},
},
};