Skip to content

Commit

Permalink
Merge pull request #639 from dnbexperience/develop
Browse files Browse the repository at this point in the history
release of v7.1.18
  • Loading branch information
tujoworker authored Sep 15, 2020
2 parents fdcc51a + e209a30 commit 415a015
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/dnb-ui-lib/src/components/tabs/Tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ export default class Tabs extends React.PureComponent {
const cachedContent = Object.entries(this._cache).map(
([key, { content }]) => {
const params = {}
if (key !== selected_key) {
if (key !== String(selected_key)) {
params.hidden = true
params['aria-hidden'] = true
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,10 @@ describe('A single Tab component', () => {
data={[
{
title: 'One',
key: 'one',
key: 1,
content: 'Content one'
},
{ title: 'Two', key: 'two', content: 'Content two' }
{ title: 'Two', key: 2, content: 'Content two' }
]}
/>
)
Expand Down

0 comments on commit 415a015

Please sign in to comment.