Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when using first column as defaultSorting #71

Closed
mrjones-plip opened this issue Sep 7, 2017 · 1 comment
Closed

error when using first column as defaultSorting #71

mrjones-plip opened this issue Sep 7, 2017 · 1 comment
Labels

Comments

@mrjones-plip
Copy link
Contributor

mrjones-plip commented Sep 7, 2017

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

@melalj
Copy link
Member

melalj commented Jul 11, 2018

@Ths2-9Y-LqJt6 Should be fixed with #81 !

@melalj melalj closed this as completed Jul 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants