Skip to content

Setting options bug #1

@milanstamenkovic

Description

@milanstamenkovic
for (var _a = __values(Object.keys(this.defaultOptions)), _b = _a.next(); !_b.done; _b = _a.next()) {
                var key = _b.value;
                if (!this.options.hasOwnProperty(key)) {
                    this.options = this.defaultOptions[key];
                }
            }

I have found this piece of code in ngx-grid-stack.js. And I think it should be:
this.options[key] = this.defaultOptions[key]
this way this.options is always equal to the last undefined value from Options object

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions