[iOS] Pressing next into a ListView or TableView goes to last element #13176
Labels
area-controls-entry
Entry
area-controls-listview
ListView and TableView
fixed-in-8.0.0-preview.3.8149
Look for this fix in 8.0.0-preview.3.8149!
platform/iOS 🍎
platform/macOS 🍏
macOS / Mac Catalyst
t/bug
Something isn't working
Milestone
Description
The code from this PR allows the user to click the "Next" button on the iOS Keyboard (or "enter" on physical keyboard using MacCatalyst) to automatically focus the next UITextField or UITextView (Editor and Entry in Maui).
However, when you press the "Next" button to go into a ListView or TableView, you get sent to the last entry as you can see in the video below:
TableView.mov
It appears that the logical tree reverses the order of the elements in the ListView and TableView and because the Next Navigation uses the logical ordering. Running a slightly different project below, you can see that when we run the maui project on VSMac on MacCatalyst and then attach a debugger inside Xcode and inspect the hierarchy tree, the TableView's entries are backwards.
Steps to see the process in Xcode
Debug->Attach to Process->{find the maui process and click}
dropdown on the top mac toolbarFrom searching inside the ListViewRenderer (when observing similar behavior in the ListView), it seems that elements are in the correct order inside the DataSource so it appears that somewhere else, things are getting reversed.
Steps to Reproduce
Link to public reproduction project repository
https://github.com/tj-devel709/MauiRepros/tree/main/NextListTableViewIssueRepro
Version with bug
7.0 (current)
Last version that worked well
Unknown/Other
Affected platforms
iOS, macOS
Affected platform versions
iOS 16.2 + MacCatalyst 16.2
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: