forked from CGM_Public/pretix_original
Web check-in: Fix missing blur() calls for serial scanning
This commit is contained in:
@@ -326,6 +326,10 @@ export default {
|
|||||||
this.checkResult = {}
|
this.checkResult = {}
|
||||||
window.clearInterval(this.clearTimeout)
|
window.clearInterval(this.clearTimeout)
|
||||||
|
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$refs.input.blur()
|
||||||
|
})
|
||||||
|
|
||||||
fetch(this.$root.api.lists + this.checkinlist.id + '/positions/' + encodeURIComponent(id) + '/redeem/?expand=item&expand=variation', {
|
fetch(this.$root.api.lists + this.checkinlist.id + '/positions/' + encodeURIComponent(id) + '/redeem/?expand=item&expand=variation', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
@@ -444,6 +448,7 @@ export default {
|
|||||||
if (data.results.length) {
|
if (data.results.length) {
|
||||||
if (data.results[0].secret === this.query) {
|
if (data.results[0].secret === this.query) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
|
this.$refs.input.blur()
|
||||||
this.$refs.result[0].$refs.a.click()
|
this.$refs.result[0].$refs.a.click()
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user