We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
with the new logic of Menu item matcher introduced in ee2c0ae, all SubMenu Items with the same Crud are selected, instead of the specific selected:
Comment out this function fix the behavior:
EasyAdminBundle/src/Menu/MenuItemMatcher.php
Lines 109 to 117 in 8c88ce1
a possible workaround is to add a second MenuItem of the same Crud in the same SubMenu like this:
yield MenuItem::linkToCrud('', '', Team::class)->setHtmlAttribute("hidden", "1")
It break my usage of parent -> child entities:
class DashboardController extends AbstractDashboardController { public function configureMenuItems(): iterable { yield MenuItem::subMenu('subMenu 1')->setSubItems([ MenuItem::linkToCrud('subItem 1', '', User::class)->setQueryParameter("ParentId", 1) ]); yield MenuItem::subMenu('subMenu 2')->setSubItems([ MenuItem::linkToCrud('subItem 2', '', User::class)->setQueryParameter("ParentId", 2) ]); } }
then click on one of the SubItem
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
with the new logic of Menu item matcher introduced in ee2c0ae, all SubMenu Items with the same Crud are selected, instead of the specific selected:
Comment out this function fix the behavior:
EasyAdminBundle/src/Menu/MenuItemMatcher.php
Lines 109 to 117 in 8c88ce1
a possible workaround is to add a second MenuItem of the same Crud in the same SubMenu like this:
It break my usage of parent -> child entities:
To Reproduce
then click on one of the SubItem
The text was updated successfully, but these errors were encountered: