Vuetify: [Bug Report] Duplicate names in breadcrumbs array lead to error

Created on 27 Oct 2018  路  3Comments  路  Source: vuetifyjs/vuetify

Versions and Environment

Vuetify: 1.3.3
Vue: 2.5.17
Browsers: Chrome 69.0.3497.100
OS: Linux x86_64

Steps to reproduce

  1. Visit link
  2. open console and see error

Expected Behavior

Breadcrumbs with duplicate names should be possible.

Actual Behavior

Error.

Reproduction Link

https://codepen.io/anon/pen/NOJqqM?editors=1010

bug

All 3 comments

What is your use case for the same name being repeated? I would assume each breadcrumb link to be unique since it is a listing of the previous / parent pages.

My customers can create names for the entities and the entities are nested. Example: User has a table named "Test" and inside that table a dashboard named "Test".

Tables > Test > Dashboards > Test

"Tables" and "Dashboards" are defined by application and "Test" defined by user.

Got it -- that makes sense.

I'm not very familiar with the breadcrumb code, but maybe in VBreadcrumbs.ts the genItems function could be refactored to use a different key than the item.text?

Was this page helpful?
0 / 5 - 0 ratings