-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Shell][Android] The truth is out there...but not on top tab search handlers #8716
Copy link
Copy link
Labels
area-controls-shellShell Navigation, Routes, Tabs, FlyoutShell Navigation, Routes, Tabs, Flyoutpartner/syncfusionIssues / PR's with Syncfusion collaborationIssues / PR's with Syncfusion collaborationplatform/androids/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Milestone
Description
Description
I have this tab structure in my Shell app:
<TabBar>
<Tab Title="Domestic"
Icon="paw.png">
<ShellContent Title="Cats"
ContentTemplate="{DataTemplate views:CatsPage}" />
<ShellContent Title="Dogs"
ContentTemplate="{DataTemplate views:DogsPage}" />
</Tab>
...
</TabBar>So this gives us a Domestic bottom tab, and Cats and Dogs top tabs (within the Domestic tab).
CatsPage has a search handler which searches the cats data:
<Shell.SearchHandler>
<controls:AnimalSearchHandler Placeholder="Enter search term"
ShowsResults="true"
ItemTemplate="{StaticResource AnimalSearchTemplate}"
Animals="{x:Static data:CatData.Cats}"
SelectedItemNavigationTarget="{x:Type views:CatDetailPage}" />
</Shell.SearchHandler>It works fine:
On DogsPage there's also a search handler that searches the dogs data:
<Shell.SearchHandler>
<controls:AnimalSearchHandler Placeholder="Enter search term"
ShowsResults="true"
ItemTemplate="{StaticResource AnimalSearchTemplate}"
Animals="{x:Static data:DogData.Dogs}"
SelectedItemNavigationTarget="{x:Type views:DogDetailPage}" />
</Shell.SearchHandler>However, using this search handler searches the cats data:
This problem is only occurring for bottom tabs that also contain top tabs. For the elephants/monkeys/bears page the search handlers work as expected.
The problem might also occur on platforms other than Android, but right now in SR2 the app crashes on iOS/MacCatalyst, and on Windows the search handler doesn't template the results.
Repo: Xaminals.zip
Steps to Reproduce
- Run the attached sample on Android.
- Navigate to the Dogs top tab and search for dogs data. It searches cats data.
Version with bug
6.0.408
Last version that worked well
Unknown/Other
Affected platforms
Android
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-controls-shellShell Navigation, Routes, Tabs, FlyoutShell Navigation, Routes, Tabs, Flyoutpartner/syncfusionIssues / PR's with Syncfusion collaborationIssues / PR's with Syncfusion collaborationplatform/androids/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working

