Jelajahi Sumber

feat(handsontable): 点击表格外handsontable还监听事件

zhangweicheng 5 tahun lalu
induk
melakukan
3e29b2f224
2 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 1 1
      handsontable/package.json
  2. 1 0
      handsontable/src/tableView.js

+ 1 - 1
handsontable/package.json

@@ -10,7 +10,7 @@
     "url": "https://github.com/handsontable/handsontable/issues"
   },
   "author": "Handsoncode <hello@handsontable.com>",
-  "version": "6.3.2",
+  "version": "6.3.3",
   "browser": "dist/handsontable.js",
   "main": "commonjs/index.js",
   "module": "es/index.js",

+ 1 - 0
handsontable/src/tableView.js

@@ -171,6 +171,7 @@ function TableView(instance) {
       instance.deselectCell();
     } else {
       instance.destroyEditor(false, false, true);
+      instance.unlisten();// 点击tab等其它handsontable外的元素时,handsontable要解除监听键盘等事件. handsontable只在mouseup事件通过isOutsideInput只针对input 等几个输入元素
     }
   });