It seems like the scanner components keeps a history of scans. I'm using an event handler on my scanner component to set the value of an input to {{_.last(self.data)}}, where self is the scanner component.
I also clear the value for the scanner component every time the user is expected to scan a new value.
However if I set the event handler to the scanner component I can't select this scanner as a component for this event handler. How did you manage to assign the component to it's own event handler?
@Scottsky I also don't see a way to select the self component from the component dropdown I also don't see a setValue api for the scanner. I believe @adam_grid's example is setting a separate input component to the value of the last item in the scanner's history (self.data).
Do you think the scanner is scanning the same barcode multiple times? This setting might help:
We are also tracking feature requests to allow programmatic access to filter specific symbologies so you can reject unexpected scans.