enisn / UraniumUI

Uranium is a Free & Open-Source UI Kit for MAUI.
Apache License 2.0
1.17k stars 142 forks source link

[Bug] AutoCompleteTextField Doesn't Display Result in CommunityToolKit Popup #204

Closed BinaryAssault closed 1 year ago

BinaryAssault commented 1 year ago

Title.

I'll have to make a small sample repo for replication later as I can't post my source code here. I copied the code from the Demo app for AutoCompleteTextField, and the functionality works, but results are not displayed in the UI when using a Popup from the CommunityToolKit.

enisn commented 1 year ago

Can you confirm whether that happens on all platforms or just on a specific platform?

Since iOS doesn't have any suggestbox equivalent implementation and I have a custom implementation for ios. https://github.com/enisn/UraniumUI/blob/b105b30b5923f9acd44e4b0c99768454f7afb5e6/src/UraniumUI.Material/Handlers/AutoCompleteViewHandler.Apple.cs#L350

BinaryAssault commented 1 year ago

Can you confirm whether that happens on all platforms or just on a specific platform?

Since iOS doesn't have any suggestbox equivalent implementation and I have a custom implementation for ios.

https://github.com/enisn/UraniumUI/blob/b105b30b5923f9acd44e4b0c99768454f7afb5e6/src/UraniumUI.Material/Handlers/AutoCompleteViewHandler.Apple.cs#L350

Sorry, forgot to mention. This is on Android, I tested with A7 and A10, both do not work (inside the popup). No suggestions are displayed.

I do not have any apple equipment, so I won't be able to test apple. Also never tested on windows - apparently my APP crashes on desktop. I'll put together a repo replicating the issue hopefully soon.

BinaryAssault commented 1 year ago

Can't replicate it in a standalone app. So must be a problem with my code base.

BinaryAssault commented 1 year ago

Figured it out, at some point I removed .ToList() from the call below. Adding .ToList() back fixed it

 SearchResults = (await GetSuggestionsAsync(value)).ToList();