dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.26k stars 1.76k forks source link

[Android .Net 9.0] Maui Hybrid input onkeydown not working anymore #25996

Open lommez opened 2 days ago

lommez commented 2 days ago

Description

Before updating from .Net 8.0 to .Net 9.0 this code below was working perfectly:

        <input type="text" class="search-input form-control"
               @bind="searchTerm"
               @bind:event="oninput"
               @onkeydown="HandleSearchOnEnterAsync" />
    private async Task HandleSearchOnEnterAsync(KeyboardEventArgs e)
    {
        if (e.Key == "Enter")
        {
            await ExecuteSearchAsync();
        }
    }

Is there any workaround for that issue? Is a known bug?

Steps to Reproduce

No response

Link to public reproduction project repository

No response

Version with bug

9.0.10 SR1

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

8.0.100 SR10

Affected platforms

Android, I was not able test on other platforms

Affected platform versions

Android Version 14

Did you find any workaround?

No response

Relevant log output

ninachen03 commented 2 days ago

Could you provide a sample project for us to investigate it further? Looking forward to your reply!

dotnet-policy-service[bot] commented 1 day ago

Hi @lommez. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md

This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.