Skip to content
Permalink
Browse files

fix(b-table, b-table-lite): use `:key` for row details based on the p…

…rimary key value if available (#4025)
  • Loading branch information...
tmorehouse committed Sep 5, 2019
1 parent 2012d07 commit c7cb16fee8d3a4d884490f4cb41298c597b0bfa5
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/components/table/helpers/mixin-tbody-row.js
@@ -334,7 +334,7 @@ export default {
$rows.push(
// We don't use `BTr` here as we dont need the extra functionality
h('tr', {
key: `__b-table-details-${rowIndex}-stripe__`,
key: `__b-table-details-stripe__${rowKey}`,
staticClass: 'd-none',
attrs: { 'aria-hidden': 'true', role: 'presentation' }
})
@@ -346,7 +346,7 @@ export default {
h(
BTr,
{
key: `__b-table-details-${rowIndex}__`,
key: `__b-table-details__${rowKey}`,
staticClass: 'b-table-details',
class: [
isFunction(this.tbodyTrClass)

0 comments on commit c7cb16f

Please sign in to comment.
You can’t perform that action at this time.