dachcom-digital/js-pimcore-formbuilder

Options are shared between instances

patric-eberle opened this issue · 1 comments

When creating a new FetchManager instance, it's options are shared between all forms on the page (later forms overwrite previous ones). This happens because Object.assign(target, ...sources) does not create a new object but extends the existing default value object.

this.options = Object.assign(FETCH_MANAGER_DEFAULTS, options);

Pull request: #7

Fixed via #7. Thanks again!