mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-27 12:48:49 +01:00
fix(menu): fix selected determination for pathMatch partial router links
This commit is contained in:
parent
f60fa581a3
commit
3e66636a05
1 changed files with 1 additions and 1 deletions
|
|
@ -108,7 +108,7 @@ export class BaMenuService {
|
|||
}
|
||||
|
||||
protected _selectItem(object:any):any {
|
||||
object.selected = this._router.isActive(this._router.createUrlTree(object.route.paths), object.pathMatch !== 'full');
|
||||
object.selected = this._router.isActive(this._router.createUrlTree(object.route.paths), object.pathMatch === 'full');
|
||||
return object;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue