aleman 1.15.0 → 1.15.1
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.
- package/ChangeLog +5 -0
- package/aleman/add-listeners.js +1 -1
- package/menu/addons/k/fixture/submenu.js +1 -1
- package/menu/addons/k/k.js +2 -2
- package/package.json +1 -1
package/ChangeLog
CHANGED
package/aleman/add-listeners.js
CHANGED
|
@@ -53,7 +53,7 @@ export const splitAddons = (addons) => {
|
|
|
53
53
|
};
|
|
54
54
|
};
|
|
55
55
|
|
|
56
|
-
export const addGlobalListeners = ({globalAddons, options, readState, writeState}) => {
|
|
56
|
+
export const addGlobalListeners = ({globalAddons, options, readState, writeState, document = globalThis.document}) => {
|
|
57
57
|
for (const addon of globalAddons) {
|
|
58
58
|
const events = maybeEvents(addon);
|
|
59
59
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<ul data-name="menu" className="menu
|
|
1
|
+
<ul data-name="menu" className="menu" style="left: 0px; top: 20px;">
|
|
2
2
|
<li data-name="menu-item" data-menu-index="0" className="menu-item icon icon-view menu-item-selected">
|
|
3
3
|
<label data-menu-path="View">View</label>
|
|
4
4
|
</li>
|
package/menu/addons/k/k.js
CHANGED
|
@@ -13,8 +13,8 @@ export function listener({count, state, options}) {
|
|
|
13
13
|
let newIndex = insideSubmenu ? index : index - count + 1;
|
|
14
14
|
let newSubmenuIndex = insideSubmenu ? submenuIndex - count + 1 : submenuIndex;
|
|
15
15
|
|
|
16
|
-
if (newIndex
|
|
17
|
-
newIndex =
|
|
16
|
+
if (newIndex <= -1)
|
|
17
|
+
newIndex = 0;
|
|
18
18
|
|
|
19
19
|
if (newSubmenuIndex < -1)
|
|
20
20
|
newSubmenuIndex = -1;
|