akveo / akveo/nebular

nb-menuitem: routerlink active not updating when using parametrs

Đang mở
#2,405 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
8.1k
Fork
1.5k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### Issue type

**I'm submitting a ...

* [ x] bug report

### Issue description

**Current behavior:**
When defining routes without parameters e.g:
` {
path: 'assets/hw',
component: AssetsHardwareComponent,
},`
the active route is updated in NbMenuItem.
When adding a parameter e.g:
` {
path: 'assets/hw/:id',
component: AssetsHardwareComponent,
},`
the active route is NOT updated and the old Navigation Item stays active.

**Expected behavior:**
Active nbmenuitem should be updated when using parameters.

**Steps to reproduce:**
define route with parameter `(:id)`

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.