Skip to content

Commit c7cb16f

Browse files
authored
fix(b-table, b-table-lite): use :key for row details based on the primary key value if available (#4025)
1 parent 2012d07 commit c7cb16f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/table/helpers/mixin-tbody-row.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ export default {
334334
$rows.push(
335335
// We don't use `BTr` here as we dont need the extra functionality
336336
h('tr', {
337-
key: `__b-table-details-${rowIndex}-stripe__`,
337+
key: `__b-table-details-stripe__${rowKey}`,
338338
staticClass: 'd-none',
339339
attrs: { 'aria-hidden': 'true', role: 'presentation' }
340340
})
@@ -346,7 +346,7 @@ export default {
346346
h(
347347
BTr,
348348
{
349-
key: `__b-table-details-${rowIndex}__`,
349+
key: `__b-table-details__${rowKey}`,
350350
staticClass: 'b-table-details',
351351
class: [
352352
isFunction(this.tbodyTrClass)

0 commit comments

Comments
 (0)