Question - Working with barcode scanners (that insert TAB after scan) #1598
Unanswered
TheJaredWilcurt
asked this question in
Help Wanted
Replies: 1 comment
-
I wonder if Let me know if you were able to come up with a workaround. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Scenario:
We have a typeahead for users to enter in an Asset Tag. As you type, we make network requests to return matching values to populate the dropdown. This works great, and validates the tag exists and returns it's ID with it (you can't select something unless it exists).
Problem:
Some of our users need to scan in Asset Tags using a barcode scanner that inserts a "TAB" character after each scan (there is no way to change this, they need the TAB for other software). This causes the field to lose focus before the network request completes, and thus nothing is selected, so the input stays blank.
Question:
Is there a way with the existing API to deal with this scenario?
Describe alternatives you've considered:
Only alternative I can think of is to build a custom component from scratch just for this one-off case of a text input with an icon next to it that cycles between a spinner when validating the input, and a checkmark or X if it is valid. I'd prefer to avoid this approach if possible, as it has a worse user experience for non-scanner users.
Beta Was this translation helpful? Give feedback.
All reactions