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
21.86k stars 1.68k forks source link

Entry field does not track binding #5436

Open david-maw opened 2 years ago

david-maw commented 2 years ago

Description

A CollectionView used to track a collection with an entry field bound to the selected item works fine if the binding mode is TwoWay (meaning changing the selection changes the text in the Entry and changing the text in the entry changes the displayed item).

However, if the Mode is OneWay the first time you enter anything in the entry field it "freezes" and from then on changing the selected item does not change the entry field.

Steps to Reproduce

  1. Unzip attached project
  2. Run it on Windows or Linux
  3. Click on each of the two items in the list, observe the entry field changing
  4. type text in the entry field
  5. Click on each of the two items in the list, observe the entry field no longer changes

Version with bug

Preview 14 (current)

Last version that worked well

Unknown/Other

Affected platforms

Android, Windows, I was not able test on other platforms

Affected platform versions

Android 11, Windows 10

Did you find any workaround?

No

Relevant log output

No response MAUIListEntry.zip

kristinx0211 commented 2 years ago

verified repro on windows, after typing text in the entry field, click on each of the two items in the list, the entry field no longer changes. demo: MauiApp6.zip

lauglam commented 2 years ago

I found the same problem with setting the IsRefreshing property in the RefreshView control to OneWay

samhouts commented 2 years ago

Still an issue in 6.0.300-rc.4.5681

ghost commented 1 year ago

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

danielftz commented 1 year ago

What's the ETA on this fix?

XamlTest commented 1 year ago

Verified this issue on Visual Studio Enterprise 17.6.0 Preview 3.0. Repro on Windows 11 with below Project: 5436.zip NoRespose

naywun commented 10 months ago

More than one year already but the simple and important issue not fixed yet on latest .net preview 8. I can’t continue my project anymore.

any workaround for this?

hwsmo commented 10 months ago

Hi, please fix the error. As soon as you have made a change in the field, no more text is accepted by changing the ViewModl. This is frustrating.