Skip to content

error when using first column as defaultSorting #71

@mrjones-plip

Description

@mrjones-plip

if you have a table() section on your maptable that has a defaultSorting which references the first column of csv data, you get an error:

TypeError: d3.event is null Table.js:206:11

This references this if statement:

if (!d3.event.shiftKey) {
    this.sorting = [this.sorting[sortIndex]];
}

To reproduce, change city to country in the default.sort.html example:

defaultSorting: {
    key: "country"
}

current work around is re-order the data source to not have first column be the one you want to sort on

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions