maui icon indicating copy to clipboard operation
maui copied to clipboard

When using a barcode scanner, the Entry.Completed event is fired with empty Text

Open MarcelloPoletti opened this issue 5 months ago • 4 comments
trafficstars

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


MarcelloPoletti avatar May 28 '25 10:05 MarcelloPoletti

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.

similar-issues-ai[bot] avatar May 28 '25 10:05 similar-issues-ai[bot]

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.

jsuarezruiz avatar May 29 '25 07:05 jsuarezruiz

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

DGNicolaz avatar Jun 04 '25 07:06 DGNicolaz

Still an issue in version 9, zebra scanner

freemstr avatar Jun 16 '25 17:06 freemstr