maui icon indicating copy to clipboard operation
maui copied to clipboard

Focus and blur event get triggered unnecessarily

Open Deepak-Ramakrisnan opened this issue 4 months ago • 9 comments

Description

When upgrading the MAUI.controls from version 8.0.7 to 8.0.20 , I'm facing the blur and focus event related issues and unexpected behaviors , Such as

1.While focusing the component again and again , focus and blur event get triggered even though component already in focused state

2.When component get focused out , focus event get triggered and also blur event get triggered twice

Steps to Reproduce

Case 1 :

1.Focus the component again and again without blurring it (mouse click again and again inside the input)

output: Now the focus and blur event triggered for every click unnecessarily

Case 2:

1.Focus and Focus out the element

Output : Now the focus event triggered once and blur event triggered twice

Link to public reproduction project repository

https://github.com/Deepak-Ramakrisnan/MAUI_Blur_Focus_issue

Version with bug

8.0.20 SR4

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

8.0.7 SR2

Affected platforms

Windows

Affected platform versions

Blazor Maui app

Did you find any workaround?

No response

Relevant log output

No response

Deepak-Ramakrisnan avatar Apr 15 '24 14:04 Deepak-Ramakrisnan

Verified on VS 17.10.0 Preview 3.0(8.0.20). Repro on Windows 11 with below Project: MauiBlazorApp.zip

XamlTest avatar Apr 16 '24 07:04 XamlTest