[MAUI]Clicking on 'Dessert' shows nothing.
Description
Clicking on 'Dessert' shows nothing.
Steps to Reproduce
1.Deploy https://github.com/rachelkang/recipeSearch to Mac Catalyst. 2.Click on 'Dessert'. 3.View page.
Actual Result:
Clicking on 'Dessert' shows nothing.
Expected Result:
Clicking on ‘Dessert’ will display a selection of desserts.
Link to public reproduction project repository
https://github.com/rachelkang/recipeSearch
Version with bug
Microsoft.Maui.Controls 8.0.40-nightly.10612+sha.752eed7129-azdo.9538080
Is this a regression from previous behavior?
Not a regression, it can be reproduced in the latest 8.0.3&8.0.21.
Affected platforms
iOS, Android, Windows, macOS
Did you find any workaround?
Yes, I found the following two ways to display the 'dessert' list.
- Search for ‘dessert’ directly in the search box.
- In line 48 of the "recipeSearch-main\WhatToEat\Views\StartingPage.xaml" file, change CommandParameter="dishType=dessert" to CommandParameter="dessert".
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!
Open similar issues:
- [MAUI][.NET9] Clicking on any recipe page shows blank (#21032), similarity score: 0.76
- [MAUI][.NET9] Searching on the “Search all recipes page” will cause the app to crash. (#21033), similarity score: 0.70
Closed similar issues:
- [MAUI][.NET8] System.InvalidOperationException will be thrown when clicking here to view full recipe. (#21567), similarity score: 0.72
- [MAUI][.NET8] Search for a recipe with "fries" first result is not "Alpine fries". (#21005), similarity score: 0.70
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
@RoiChen001 is this still happening? This may have just been an issue with the web service that the testing app calls into?
@PureWeen Yes, it still happens. In the initial page, only the dessert module will produce nothing after being clicked.
https://github.com/rachelkang/recipeSearch/blob/f2bfd39fdec401b746a0db0173a17f6f748d9033/WhatToEat/Views/StartingPage.xaml#L48
-<Button Text="Dessert" ImageSource="dessert.png" Command="{Binding FilteredSearchCommand}" CommandParameter="dishType=dessert" Style="{StaticResource RecipeCategoryButtonStyle}"/>
+<Button Text="Dessert" ImageSource="dessert.png" Command="{Binding FilteredSearchCommand}" CommandParameter="dishType=desserts" Style="{StaticResource RecipeCategoryButtonStyle}"/>
works for me. That is:
-CommandParameter="dishType=dessert"
+CommandParameter="dishType=desserts"
See the available categories here.
I opened PR https://github.com/rachelkang/recipeSearch/pull/31 for this.
https://github.com/rachelkang/recipeSearch/pull/31 was merged.