@forter/button-group
Advanced tools
Comparing version 1.3.8 to 1.3.9
@@ -6,2 +6,10 @@ # Change Log | ||
## [1.3.9](https://github.com/forter/web-components/compare/@forter/button-group@1.3.8...@forter/button-group@1.3.9) (2020-05-25) | ||
**Note:** Version bump only for package @forter/button-group | ||
## [1.3.8](https://github.com/forter/web-components/compare/@forter/button-group@1.3.7...@forter/button-group@1.3.8) (2020-05-25) | ||
@@ -8,0 +16,0 @@ |
@@ -135,8 +135,11 @@ import { decorate as _decorate } from './_virtual/_rollupPluginBabelHelpers.js'; | ||
} = this; | ||
if (disabled || currentTarget.hasAttribute('disabled')) return; | ||
if (disabled || currentTarget.hasAttribute('disabled') || currentTarget.hasAttribute('disabled-events')) return; | ||
let action; | ||
if (isActive(currentTarget)) { | ||
currentTarget.removeAttribute('active'); | ||
action = 'REMOVED'; | ||
} else { | ||
currentTarget.setAttribute('active', ''); | ||
action = 'ADDED'; | ||
} | ||
@@ -148,2 +151,3 @@ | ||
activeButtons, | ||
action, | ||
changedButton: currentTarget | ||
@@ -150,0 +154,0 @@ } |
{ | ||
"name": "@forter/button-group", | ||
"version": "1.3.8", | ||
"version": "1.3.9", | ||
"description": "Button Group from Forter Components", | ||
@@ -58,3 +58,3 @@ "author": "Forter Developers", | ||
}, | ||
"gitHead": "45310ab6e7a17e955049d3138d1aa454057d13d2" | ||
"gitHead": "b975b0fad8cda93c1d8e475c724e29333cb1d9be" | ||
} |
@@ -94,7 +94,12 @@ import { LitElement, html, property } from 'lit-element'; | ||
const { disabled } = this; | ||
if (disabled || currentTarget.hasAttribute('disabled')) return; | ||
if (disabled || | ||
currentTarget.hasAttribute('disabled') || | ||
currentTarget.hasAttribute('disabled-events')) return; | ||
let action; | ||
if (isActive(currentTarget)) { | ||
currentTarget.removeAttribute( 'active'); | ||
action = 'REMOVED'; | ||
} else { | ||
currentTarget.setAttribute( 'active', ''); | ||
action = 'ADDED'; | ||
} | ||
@@ -104,2 +109,3 @@ const activeButtons = this.buttons.filter(isActive); | ||
activeButtons, | ||
action, | ||
changedButton: currentTarget, | ||
@@ -106,0 +112,0 @@ } })); |
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
74038
1058