@hypericon/mico 0.5.5 → 0.5.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -102,8 +102,8 @@ class MenuManager {
102
102
  }
103
103
  // m.render(this.containerEl, menuVnode);
104
104
  const asChild = (_b = options === null || options === void 0 ? void 0 : options.asChild) !== null && _b !== void 0 ? _b : menu_settings_1.MENU_SETTINGS.AS_CHILD;
105
- if (asChild && (ev === null || ev === void 0 ? void 0 : ev.target) && ev.target instanceof HTMLElement) {
106
- this.directParentEl = ev.target;
105
+ if (asChild && (ev === null || ev === void 0 ? void 0 : ev.target) && ev.currentTarget instanceof HTMLElement) {
106
+ this.directParentEl = ev.currentTarget;
107
107
  this.directParentWrapperEl = document.createElement("div");
108
108
  this.directParentEl.append(this.directParentWrapperEl);
109
109
  mithril_1.default.render(this.directParentWrapperEl, menuVnode);
@@ -102,8 +102,8 @@ class MenuManager {
102
102
  }
103
103
  // m.render(this.containerEl, menuVnode);
104
104
  const asChild = (_b = options === null || options === void 0 ? void 0 : options.asChild) !== null && _b !== void 0 ? _b : menu_settings_1.MENU_SETTINGS.AS_CHILD;
105
- if (asChild && (ev === null || ev === void 0 ? void 0 : ev.target) && ev.target instanceof HTMLElement) {
106
- this.directParentEl = ev.target;
105
+ if (asChild && (ev === null || ev === void 0 ? void 0 : ev.target) && ev.currentTarget instanceof HTMLElement) {
106
+ this.directParentEl = ev.currentTarget;
107
107
  this.directParentWrapperEl = document.createElement("div");
108
108
  this.directParentEl.append(this.directParentWrapperEl);
109
109
  mithril_1.default.render(this.directParentWrapperEl, menuVnode);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hypericon/mico",
3
- "version": "0.5.5",
3
+ "version": "0.5.6",
4
4
  "description": "UI components and utilities with Mithril",
5
5
  "author": "Ed Johnson, Hypericon Ltd",
6
6
  "license": "MIT",