When using the Xamarin.Forms Shell template and upgrade to Xamarin.Forms 4.1 (I did not test with 4.0 yet), the SearchHandler is removing the search term on enter/search execution.
It should keep the searched term.
It losts the content.
Already added above in the description.
Reproduction can be done with the VS template within a minute.
Issue is here on 4.0 as well.
Repro (took 5 minutes):
_6804 Repro.zip
Happens on iOS and Android.
This is really annoying. Please, fix this problem.
Any workarounds till the issue is fixed?
This doesn't seem to be fixed for iOS because as soon as I lose focus (manually call _searchController.Active = false) the text is removed again.
Furthermore, xamarin forms 4.5 disables the ui for ios when the search controller is active, not allowing me to scroll any of the results or interact with them.
@GeorgeVelikov
Setting the Active
property on a UISearchController
to false will clear its search text. This is the native behaviour on iOS and what was removed in #8101.
I am able to scroll a list while the search controller is active in 4.5. Would you be able to provide a sample solution and possibly create a separate issue?
Most helpful comment
Any workarounds till the issue is fixed?