1

I am attempting to override a keyEvent for a handsontable. The code runs but will get the error "Uncaught TypeError: this.handleSearchNext is not a function" But it is a function defined, so I'm not sure why I am getting this error.

async componentWillReceiveProps(newProps) {
    this.hotTable.updateSettings({
      afterDocumentKeyDown(e) {
        if (e.key === 'Enter') {
          this.handleSearchNext(e)
          e.stopPropagation()
          console.log('Stopped propigation in table', e)
        }
      }
    })
}
.
.
.
handleSearchNext = (e) => {...}
4

0 回答 0