Web check-in: Fix missing blur() calls for serial scanning

This commit is contained in:
Raphael Michel
2021-05-21 09:41:33 +02:00
parent 0348b0985c
commit 40fa881486

View File

@@ -326,6 +326,10 @@ export default {
this.checkResult = {}
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', {
method: 'POST',
headers: {
@@ -444,6 +448,7 @@ export default {
if (data.results.length) {
if (data.results[0].secret === this.query) {
this.$nextTick(() => {
this.$refs.input.blur()
this.$refs.result[0].$refs.a.click()
})
} else {