Skip to content

Commit

Permalink
Fix options overwrite between components (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz authored and wachterjohannes committed May 10, 2019
1 parent 76433b2 commit da23208
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## 2.0.0

- BUGFIX: Fix corejs options overwrite between components. #50
- ENHANCEMENT: Rename to @sulu/web and restructure repository. #49
- ENHANCEMENT: Add possibility to extend container link attributes. #48
- BUGFIX: Fix menu button for chrome. #47
- FEATURE: Add animation link hover scss mixin. #46
Expand Down
2 changes: 1 addition & 1 deletion packages/core/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ var web = (function web() {
// Instantiate object from base component and init it
Component = web.getBaseComponent(name);
instance = new Component();
instance.initialize(web.getElement(id), Object.assign(componentDefaultOptions[name], options));
instance.initialize(web.getElement(id), Object.assign({}, componentDefaultOptions[name], options));

// Add component instance to registry
componentInstances[id] = instance;
Expand Down

0 comments on commit da23208

Please sign in to comment.