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.97k stars 1.71k forks source link

[MAUI]Clicking on 'Dessert' shows nothing. #22325

Closed RoiChen001 closed 1 month ago

RoiChen001 commented 3 months ago

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. image

Expected Result: Clicking on ‘Dessert’ will display a selection of desserts. image

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.

  1. Search for ‘dessert’ directly in the search box.
  2. In line 48 of the "recipeSearch-main\WhatToEat\Views\StartingPage.xaml" file, change CommandParameter="dishType=dessert" to CommandParameter="dessert".
github-actions[bot] commented 3 months ago

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:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

PureWeen commented 3 months ago

@RoiChen001 is this still happening? This may have just been an issue with the web service that the testing app calls into?

RoiChen001 commented 3 months ago

@PureWeen Yes, it still happens. In the initial page, only the dessert module will produce nothing after being clicked.

MartyIX commented 2 months ago

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.

MartyIX commented 2 months ago

I opened PR https://github.com/rachelkang/recipeSearch/pull/31 for this.

MartyIX commented 1 month ago

https://github.com/rachelkang/recipeSearch/pull/31 was merged.