Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyboard or keypress event is triggering the onScan method #23

Open
anil1712 opened this issue Jan 12, 2021 · 3 comments
Open

Keyboard or keypress event is triggering the onScan method #23

anil1712 opened this issue Jan 12, 2021 · 3 comments

Comments

@anil1712
Copy link

I want to prevent the onScan method call of any kind of keypress event from keyboard because it is altering my barcode scan input data.

I tried "preventDefault" prop but did not get any success, please suggest me something on it.

@cbichis
Copy link

cbichis commented Jun 8, 2021

I have the same issue.

If there is focus on a text input box the text is typed in and the input data it seems to be corrupted (getting some weird characters inserted into text box).

I dont want to trigger the keypress events.

PreventDefault is set to true but the issue is still going on.

@cooperRjp
Copy link

Hi, same issue here can we prevent this from happening at all? Also tried the preventDefault method without success. Excellent package though really useful.

@mohamedashrafothman
Copy link

any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants