@hortonstudio/main 1.6.4 → 1.6.5

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.
@@ -83,9 +83,12 @@ function setupDynamicDropdowns() {
83
83
  item.setAttribute("tabindex", "0");
84
84
  });
85
85
 
86
- // Trigger Webflow interaction
87
- const wfIx = Webflow.require("ix3");
88
- wfIx.emit("navbar_1_dropdown");
86
+ const clickEvent = new MouseEvent("click", {
87
+ bubbles: true,
88
+ cancelable: true,
89
+ view: window,
90
+ });
91
+ wrapper.dispatchEvent(clickEvent);
89
92
  }
90
93
 
91
94
  function closeDropdown() {
@@ -108,9 +111,12 @@ function setupDynamicDropdowns() {
108
111
  toggle.focus();
109
112
  }
110
113
 
111
- // Trigger Webflow interaction (reverse)
112
- const wfIx = Webflow.require("ix3");
113
- wfIx.emit("navbar_1_dropdown");
114
+ const clickEvent = new MouseEvent("click", {
115
+ bubbles: true,
116
+ cancelable: true,
117
+ view: window,
118
+ });
119
+ wrapper.dispatchEvent(clickEvent);
114
120
  }
115
121
 
116
122
  wrapper.addEventListener("mouseenter", () => {
package/index.js CHANGED
@@ -1,5 +1,4 @@
1
- // Version:1.6.4
2
-
1
+ // Version:1.6.5
3
2
  const API_NAME = "hsmain";
4
3
 
5
4
  const initializeHsMain = async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hortonstudio/main",
3
- "version": "1.6.4",
3
+ "version": "1.6.5",
4
4
  "description": "Animation and utility library for client websites",
5
5
  "main": "index.js",
6
6
  "type": "module",