@github/details-menu-element
Advanced tools
Comparing version 0.8.0 to 0.8.1
@@ -63,3 +63,4 @@ function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
details: details, | ||
subscriptions: subscriptions | ||
subscriptions: subscriptions, | ||
loaded: false | ||
}); | ||
@@ -144,2 +145,6 @@ } | ||
if (!src) return; | ||
var state = states.get(menu); | ||
if (!state) return; | ||
if (state.loaded) return; | ||
state.loaded = true; | ||
var loader = menu.querySelector('include-fragment'); | ||
@@ -146,0 +151,0 @@ |
@@ -83,3 +83,4 @@ (function (global, factory) { | ||
details: details, | ||
subscriptions: subscriptions | ||
subscriptions: subscriptions, | ||
loaded: false | ||
}); | ||
@@ -164,2 +165,6 @@ } | ||
if (!src) return; | ||
var state = states.get(menu); | ||
if (!state) return; | ||
if (state.loaded) return; | ||
state.loaded = true; | ||
var loader = menu.querySelector('include-fragment'); | ||
@@ -166,0 +171,0 @@ |
{ | ||
"name": "@github/details-menu-element", | ||
"version": "0.8.0", | ||
"version": "0.8.1", | ||
"description": "A menu opened with a <details> button.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.umd.js", |
@@ -20,8 +20,6 @@ # <details-menu> element | ||
<summary>Robots</summary> | ||
<details-menu> | ||
<ul> | ||
<li><button type="button" role="menuitem">Hubot</button></li> | ||
<li><button type="button" role="menuitem">Bender</button></li> | ||
<li><button type="button" role="menuitem">BB-8</button></li> | ||
</ul> | ||
<details-menu role="menu"> | ||
<button type="button" role="menuitem">Hubot</button> | ||
<button type="button" role="menuitem">Bender</button> | ||
<button type="button" role="menuitem">BB-8</button> | ||
</details-menu> | ||
@@ -36,8 +34,6 @@ </details> | ||
<summary>Preferred robot: <span data-menu-button>None</span></summary> | ||
<details-menu> | ||
<ul> | ||
<li><button type="button" role="menuitem" data-menu-button-text>Hubot</button></li> | ||
<li><button type="button" role="menuitem" data-menu-button-text>Bender</button></li> | ||
<li><button type="button" role="menuitem" data-menu-button-text>BB-8</button></li> | ||
</ul> | ||
<details-menu role="menu"> | ||
<button type="button" role="menuitem" data-menu-button-text>Hubot</button> | ||
<button type="button" role="menuitem" data-menu-button-text>Bender</button> | ||
<button type="button" role="menuitem" data-menu-button-text>BB-8</button> | ||
</details-menu> | ||
@@ -52,14 +48,12 @@ </details> | ||
<summary>Preferred robot</summary> | ||
<details-menu> | ||
<ul> | ||
<li><label tabindex="0" role="menuitemradio"> | ||
<input type="radio" name="robot" value="Hubot"> Hubot | ||
</label></li> | ||
<li><label tabindex="0" role="menuitemradio"> | ||
<input type="radio" name="robot" value="Bender"> Bender | ||
</label></li> | ||
<li><label tabindex="0" role="menuitemradio"> | ||
<input type="radio" name="robot" value="BB-8"> BB-8 | ||
</label></li> | ||
</ul> | ||
<details-menu role="menu"> | ||
<label tabindex="0" role="menuitemradio"> | ||
<input type="radio" name="robot" value="Hubot"> Hubot | ||
</label> | ||
<label tabindex="0" role="menuitemradio"> | ||
<input type="radio" name="robot" value="Bender"> Bender | ||
</label> | ||
<label tabindex="0" role="menuitemradio"> | ||
<input type="radio" name="robot" value="BB-8"> BB-8 | ||
</label> | ||
</details-menu> | ||
@@ -66,0 +60,0 @@ </details> |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34594
738
111