Skip to content

Commit

Permalink
fix: fixed global context bug that removed component props (#1193)
Browse files Browse the repository at this point in the history
  • Loading branch information
dinarosv authored Jan 12, 2022
1 parent 59825b8 commit 82be98c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/dnb-eufemia/src/shared/Context.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,13 @@ export const prepareContext = (props = {}) => {
return context.translation
},
locales,
...props,
translation, // make sure we set this after props, since we update this one!
// All eufemia components because of Typescript:
Breadcrumb: {},
BreadcrumbItem: {},
Tag: {},

...props,
translation, // make sure we set this after props, since we update this one!
}

return context
Expand Down

0 comments on commit 82be98c

Please sign in to comment.