@xoong/controls 0.0.43 → 0.0.44
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/package.json +2 -2
- package/src/menu.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xoong/controls",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.44",
|
|
4
4
|
"description": "xoong form and page controls: tabs, popover, tooltip, menu, combobox, chips, tag input, carousel. Light DOM, accessible, zero dependencies besides @xoong/core.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
},
|
|
157
157
|
"homepage": "https://fpt-duongtx.github.io/xoong/",
|
|
158
158
|
"dependencies": {
|
|
159
|
-
"@xoong/core": "0.0.
|
|
159
|
+
"@xoong/core": "0.0.44"
|
|
160
160
|
},
|
|
161
161
|
"publishConfig": {
|
|
162
162
|
"access": "public"
|
package/src/menu.js
CHANGED
|
@@ -66,7 +66,7 @@ class XoMenu extends XoElement {
|
|
|
66
66
|
trigger.setAttribute('aria-haspopup', 'menu');
|
|
67
67
|
trigger.setAttribute('aria-expanded', 'false');
|
|
68
68
|
trigger.setAttribute('aria-controls', id);
|
|
69
|
-
if (trigger instanceof HTMLButtonElement && !trigger.type) trigger.type = 'button';
|
|
69
|
+
if (trigger instanceof HTMLButtonElement && !trigger.hasAttribute('type')) trigger.type = 'button'; // the `type` property is never empty (it reads "submit"): test the attribute, or a trigger inside a form submits it
|
|
70
70
|
this.#trigger = trigger;
|
|
71
71
|
this.#panel = panel;
|
|
72
72
|
prepareLayer(panel);
|