dry-ux 1.54.0 → 1.55.0

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.
@@ -41,7 +41,7 @@ class Element {
41
41
  * @returns The value of the data attribute.
42
42
  */
43
43
  data(attribute) {
44
- return this.native.getAttribute(attribute);
44
+ return this.native.getAttribute(["data"].concat(attribute.split(/(?=[A-Z])/).map(s => s.toLowerCase())).join("-"));
45
45
  }
46
46
  /**
47
47
  * Checks if the element is visible.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dry-ux",
3
- "version": "1.54.0",
3
+ "version": "1.55.0",
4
4
  "description": "",
5
5
  "main": "dist/index",
6
6
  "scripts": {