maui icon indicating copy to clipboard operation
maui copied to clipboard

[MAUI]Clicking on 'Dessert' shows nothing.

Open RoiChen001 opened this issue 1 year ago • 1 comments

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

RoiChen001 avatar May 10 '24 07:05 RoiChen001

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.

github-actions[bot] avatar May 10 '24 07:05 github-actions[bot]

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

PureWeen avatar May 13 '24 14:05 PureWeen

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

RoiChen001 avatar May 14 '24 09:05 RoiChen001

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 avatar Jun 12 '24 09:06 MartyIX

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

MartyIX avatar Jun 19 '24 13:06 MartyIX

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

MartyIX avatar Jul 23 '24 06:07 MartyIX