bulma-extensions
Advanced tools
Comparing version 0.6.8 to 0.6.9
@@ -9,3 +9,3 @@ const MOUSE_EVENTS = ['click', 'touchstart']; | ||
MOUSE_EVENTS.forEach((event) => { | ||
item.querySelector('.toggle').addEventListener(event, e => { | ||
item.querySelector('.toggle, [data-action="toggle"]').addEventListener(event, e => { | ||
e.preventDefault(); | ||
@@ -12,0 +12,0 @@ if (!item.classList.contains('is-active')) { |
@@ -1,1 +0,2 @@ | ||
var MOUSE_EVENTS=["click","touchstart"];document.addEventListener("DOMContentLoaded",function(){var a=document.querySelectorAll(".accordions");[].forEach.call(a,function(c){var a=c.querySelectorAll(".accordion");[].forEach.call(a,function(b){MOUSE_EVENTS.forEach(function(a){b.querySelector(".toggle").addEventListener(a,function(a){a.preventDefault();b.classList.contains("is-active")?b.classList.remove("is-active"):((a=c.querySelector(".accordion.is-active"))&&a.classList.remove("is-active"),b.classList.add("is-active"))})})})})}); | ||
var MOUSE_EVENTS=["click","touchstart"]; | ||
document.addEventListener("DOMContentLoaded",function(){var a=document.querySelectorAll(".accordions");[].forEach.call(a,function(c){var a=c.querySelectorAll(".accordion");[].forEach.call(a,function(b){MOUSE_EVENTS.forEach(function(a){b.querySelector('.toggle, [data-action="toggle"]').addEventListener(a,function(a){a.preventDefault();b.classList.contains("is-active")?b.classList.remove("is-active"):((a=c.querySelector(".accordion.is-active"))&&a.classList.remove("is-active"),b.classList.add("is-active"))})})})})}); |
{ | ||
"name": "bulma-accordion", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "A simple accordion extension for Bulma", | ||
@@ -5,0 +5,0 @@ "main": "accordion.sass", |
{ | ||
"name": "bulma-extensions", | ||
"version": "0.6.8", | ||
"version": "0.6.9", | ||
"description": "Set of extensions for Bulma.io CSS Framework", | ||
@@ -5,0 +5,0 @@ "main": "extensions.sass", |
Sorry, the diff of this file is not supported yet
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
507970
8231