@hortonstudio/main 1.6.3 → 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.
@@ -244,7 +244,13 @@ function setupDynamicDropdowns() {
244
244
  currentMenuItemIndex = menuItems.length - 1;
245
245
  menuItems[currentMenuItemIndex].focus();
246
246
  } else {
247
- closeDropdown();
247
+ openDropdown();
248
+ if (menuItems.length > 0) {
249
+ setTimeout(() => {
250
+ currentMenuItemIndex = menuItems.length - 1;
251
+ menuItems[currentMenuItemIndex].focus();
252
+ }, 100);
253
+ }
248
254
  }
249
255
  } else if (e.key === "Escape") {
250
256
  e.preventDefault();
package/index.js CHANGED
@@ -1,5 +1,4 @@
1
- // Version:1.6.3
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.3",
3
+ "version": "1.6.5",
4
4
  "description": "Animation and utility library for client websites",
5
5
  "main": "index.js",
6
6
  "type": "module",