Handsontable: If any of cells is specified as a `checkbox` changing a checkbox in a header produces an error

Created on 2 Apr 2019  路  3Comments  路  Source: handsontable/handsontable

Description


If any of cells is specified as a checkbox changing a checkbox in a header produces an error.

We get an error if we use type: 'checkbox', for the table or use it for any given cell. It doesn't matter if it is in the same column or row with the changed header.

Steps to reproduce

  1. Open the console
  2. Click the checkbox in the header

GIF

Demo


https://jsfiddle.net/hb59w8sq/
or here https://jsfiddle.net/gup8tm3s/

Your environment

  • Handsontable version: 7.0.0
    _Doesn't seem to be version related_
  • Browser Name and version: Chrome 73
  • Operating System: Windows 10

Inform forum

checkbox Headers Bug

Most helpful comment

I have also the same problem. Solved it adding this hook to the settings:

      beforeChange: (change, source) => {
        if(change.length && change[0] && change[0].length && change[0].filter(value => Number.isNaN(value)).length) {
          return false;
        }
        return true;
      },

All 3 comments

Any progress on this bug?

Sorry, there is no milestone attached yet

inform forum

I have also the same problem. Solved it adding this hook to the settings:

      beforeChange: (change, source) => {
        if(change.length && change[0] && change[0].length && change[0].filter(value => Number.isNaN(value)).length) {
          return false;
        }
        return true;
      },
Was this page helpful?
0 / 5 - 0 ratings

Related issues

wszymanski picture wszymanski  路  3Comments

KSandweb picture KSandweb  路  3Comments

jlrosenberg24 picture jlrosenberg24  路  3Comments

lewisjb picture lewisjb  路  3Comments

korssane picture korssane  路  3Comments