maui
maui copied to clipboard
When using a barcode scanner, the Entry.Completed event is fired with empty Text
Description
Hi everyone,
The bug reported by Nicola four years ago (https://github.com/xamarin/Xamarin.Forms/issues/14996) then by ruimgoncalves three years ago (https://github.com/dotnet/maui/issues/10663) still persists and undermines the reliability of one of the most fundamental UI controls: the Entry. In certain scenarios, the Completed event is triggered before the Text property is updated.
This is a significant issue—could someone take a look at it?
Thanks a lot, Marc.
Steps to Reproduce
No response
Link to public reproduction project repository
No response
Version with bug
10.0.0-preview.4
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI, Yes, this used to work in Xamarin.Forms
Last version that worked well
No response
Affected platforms
Windows
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
We've found some similar issues:
- #10663 , similarity score: 86%
If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.
Note: You can give me feedback by 👍 or 👎 this comment.
Based on the previous referenced issues, could try to reproduce it using https://github.com/ruimgoncalves/maui-barcode-entry-test? If have a different sample, can attach it.
Hello everyone, can't use the old ruimgoncalves example because it runs on .net 7. Here is a repro of the problem on a recent version of maui. I'll also attach a video repro of me trying to use the barcode scanner without success unless i put a delay and then me writing the text.
https://github.com/user-attachments/assets/c0c5d92d-485d-4e1b-8d77-8e3798614c0b
Still an issue in version 9, zebra scanner