目前的版本是0.12.2,有一个bug需要手工修复一下。
设置了列的自动完成时默认不能输入中文的bug。
在firefox,chrome和IE11上测试通过
修复办法:
1.3936行中的"keydown"改为"keyup"
eventManager.addEventListener(document, ‘keyup‘, function (ev){
instance.runHooks(‘afterDocumentKeyDown‘, ev);
});2.注释掉1199,1202行,如下
/**
* Listen to document body keyboard input
*/
this.listen = function () {
Handsontable.activeGuid = instance.guid;
if (document.activeElement && document.activeElement !== document.body) {
//document.activeElement.blur();
}
else if (!document.activeElement) { //IE
//document.body.focus();
}
};原文地址:http://ustb80.blog.51cto.com/6139482/1596319