Skip to content

Commit

Permalink
Merge pull request #147 from k2maan/#85zrjnfpj
Browse files Browse the repository at this point in the history
Fixed 'backdrop' being searched on closing the scanner without scanning barcode
  • Loading branch information
adityasharma7 authored Jan 25, 2023
2 parents 28c5cd6 + 41687aa commit 89f8c31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/views/Search.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,12 @@ export default defineComponent({
const modal = await modalController
.create({
component: Scanner,
backdropDismiss: false
});
modal.onDidDismiss()
.then((result) => {
//result : value of the scanned barcode/QRcode
if(result.role){
if (result.role) {
this.queryString = result.role;
this.getProducts(process.env.VUE_APP_VIEW_SIZE, 0);
}
Expand Down

0 comments on commit 89f8c31

Please sign in to comment.