Handsontable.eventManager is undefined
VioLoustic opened this issue · 6 comments
I'm using the latest master version of <hot-table>
When I implemented <hot-table>
as a web component in my sample project, the handsontable was not displayed because the console throw error as below:
hot-table.js:54 Uncaught TypeError: Cannot set property 'isHotTableEnv' of undefined
at HTMLElement. (hot-table.js:54)
I tried to comment out the below source code (hot-table.js)
this.hot.isHotTableEnv = true;
Handsontable.eventManager.isHotTableEnv = this.hot.isHotTableEnv;
Then the table was shown properly.
Could you please provide me a sample source code without modifying hot-table.js?
I need to run hot-table in JavaScript (not AngularJS)
Thank you very much!
Hi @VioLoustic
the eventManager
has been renamed to EventManager
in version 1.11.0
I am sorry. I did not get a notification about the comment.
Have you already managed to fix the issue?
I'm having same problem right click is not working for me. Anyone find solution?
@AMBudnik <hot-table>
wraps Handsontable CE 0.24.3, which still uses Handsontable.eventManager
.
The problem reported by @mohsini172 seems to be unrelated. I have created a separate issue for it: #51. Please follow that one for the context menu problem.
I would like to help but I cannot reproduce the problem explained by @VioLoustic. Closing this issue as not reproducible. If the issue prevails, please provide accurate steps to reproduce or more information that helps to find the reason.
This happened to me when using ngHandsontable with a new handsontable version.
Note that once loaded, ngHandsontable will cause this issue even on regular HOT-tables, since it adds a non-compatible hook to the global Handsontable object.