Преглед на файлове

feat(handsontable): 右键菜单问题

zhangweicheng преди 5 години
родител
ревизия
232c2e14fe
променени са 2 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 1 1
      handsontable/package.json
  2. 2 1
      handsontable/src/plugins/contextMenu/menu.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.1",
+  "version": "6.3.2",
   "browser": "dist/handsontable.js",
   "main": "commonjs/index.js",
   "module": "es/index.js",

+ 2 - 1
handsontable/src/plugins/contextMenu/menu.js

@@ -101,7 +101,8 @@ class Menu {
    */
   open() {
     this.runLocalHooks('beforeOpen');
-
+    // 2021-02-24  zhang createContainer里面先查找是否存在,有则返回。 如果不这样做的话,element-tabs 设置成lazzy后,后加载的页面会冲掉之前页面的右键菜单
+    this.container = this.createContainer(this.options.name);
     this.container.removeAttribute('style');
     this.container.style.display = 'block';