OpusCapita / react-crudeditor

OpusCapita React CRUD Editor

Home Page:https://opuscapita.github.io/react-crudeditor/branches/master/?currentComponentName=ContractEditor&maxContainerWidth=100%25&showSidebar=false

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IE11: Object doesn't support property or method 'assign'

estambakio-sc opened this issue · comments

What happens: IE11 complains that Object doesn't support property or method 'assign'.

How to reproduce: go to Edit, change something, click Save or similar buttons. IE will break, because there are Object.assign calls in react-notifications package:

  _createClass(NotificationManager, [{
    key: 'create',
    value: function create(notify) {
      var defaultNotify = {
        id: createUUID(),
        type: 'info',
        title: null,
        message: null,
        timeOut: 5000
      };
      if (notify.priority) {
        this.listNotify.unshift(Object.assign(defaultNotify, notify));
      } else {
        this.listNotify.push(Object.assign(defaultNotify, notify));
      }
      this.emitChange();
    }

In order to keep IE11 happy we should polyfill Object.assign.