You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we press ctrl key when the focus is not in the handsontable it throws error 'cannot read property of undefined'.
When i debugged more in handson table source code i find out that it triggers setCopyableText() function. Because focus is not in the table, it is unable to find out selected text which throws error.
should we change setCopyableText to handle this case ?
Even I am seeing the same problem... I narrowed it down to this code block in editorManager.js file line:53
if(Handsontable.helper.isCtrlKey(event.keyCode)){//when CTRL is pressed, prepare selectable text in textarea//http://stackoverflow.com/questions/3902635/how-does-one-capture-a-macs-command-key-via-javascriptthat.setCopyableText();return;}
The problem is setCopyableText() method is always assuming a current cell selection which is not true in the above mentioned scenario and fails. If my understanding is right, I could patch this method to return if there is no current selection.
When we press ctrl key when the focus is not in the handsontable it throws error 'cannot read property of undefined'.
When i debugged more in handson table source code i find out that it triggers setCopyableText() function. Because focus is not in the table, it is unable to find out selected text which throws error.
should we change setCopyableText to handle this case ?
This is reproducible even in the demo page: http://handsontable.com/demo/readonly.html
The text was updated successfully, but these errors were encountered: