cloudflarearchive / backgrid-select-all

Select-all extension for Backgrid.js
http://backgridjs.com
MIT License
12 stars 31 forks source link

Pressing up or down arrow after clicking select-all header cell causes error #12

Closed libbyrobinson closed 8 years ago

libbyrobinson commented 10 years ago

Happening in most up to date version of extension (v 0.3.5)

If you click on the select-all checkbox in the grids header cell, and then press either the up or down arrow, you get a js error.

Comes from line 106 of backgrid-select-all.js, in the onKeydown method, because this.model is null. this.model.trigger("backgrid:edited", this.model, this.column, command);

Included jsfiddle to repro: http://jsfiddle.net/ED7yW/

wyuenho commented 8 years ago

That fiddle works fine to me.