Skip to content

GridModel.restoreDefaults should respect latest colConfigsย #3998

@ghsolomon

Description

@ghsolomon

GridModel.restoreDefaultsAsync currently restores the original colConfigs specified at construction-time:
https://github.com/xh/hoist-react/blob/develop/cmp/grid/GridModel.ts#L531

However, it is possible to call setColumns with a new list of colConfigs, in which case the expected behavior would be for restoreDefaultsAsync to restore that collection of columns.

The current behavior is particularly problematic when columns that no longer exist are restored.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions