[Vuejs]-Tranferring focus and clearing fields based on a barcode reading (VueJS)

0👍

You have an empty return inside application, thats why it behaves wierd on “AddToBatch” condition, did you missed anything inside if condition or conditon should be like
this.applicationbarcode === “AddToBatch” && this.applicationbarcode === “CloseShipper

if (
      this.applicationbarcode === "*AddToBatch*" ||
      this.applicationbarcode === "*CloseShipper*"
    ) {
      this.applicationbarcode = "";
      return;
    } else {
      this.counter += 1;
    }

Leave a comment