@3mo/button-group
Advanced tools
Comparing version 0.1.5 to 0.1.6
@@ -143,14 +143,4 @@ import { __decorate } from "tslib"; | ||
button.type = this.type; | ||
if (index === 0) { | ||
button.setAttribute('data-mo-button-group-first', ''); | ||
} | ||
else { | ||
button.removeAttribute('data-mo-button-group-first'); | ||
} | ||
if (index === this.buttonElements.length - 1) { | ||
button.setAttribute('data-mo-button-group-last', ''); | ||
} | ||
else { | ||
button.removeAttribute('data-mo-button-group-last'); | ||
} | ||
button.toggleAttribute('data-mo-button-group-first', index === 0); | ||
button.toggleAttribute('data-mo-button-group-last', index === this.buttonElements.length - 1); | ||
} | ||
@@ -157,0 +147,0 @@ } |
{ | ||
"name": "@3mo/button-group", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "A button-group web-component.", | ||
@@ -5,0 +5,0 @@ "repository": { |
# ButtonGroup | ||
A button-group web-component. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
77289
169