wj-elements 0.1.52 → 0.1.53
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.
- package/dist/wje-tab-group.js +3 -3
- package/package.json +1 -1
package/dist/wje-tab-group.js
CHANGED
|
@@ -61,7 +61,7 @@ class v extends h {
|
|
|
61
61
|
* Sets up the event listeners after the component is drawn.
|
|
62
62
|
*/
|
|
63
63
|
afterDraw() {
|
|
64
|
-
let t = this.getActiveTab(), i = t ? t[0].
|
|
64
|
+
let t = this.getActiveTab(), i = t ? t[0].panel : this.getTabAll()[0].panel;
|
|
65
65
|
this.setActiveTab(i), this.addEventListener("wje-tab:change", (n) => {
|
|
66
66
|
if (n.detail.context.hasAttribute("disabled"))
|
|
67
67
|
return !1;
|
|
@@ -92,8 +92,8 @@ class v extends h {
|
|
|
92
92
|
* @returns {Element|null} The active tab, or null if no tab is active.
|
|
93
93
|
*/
|
|
94
94
|
getActiveTab() {
|
|
95
|
-
let t = Array.from(this.
|
|
96
|
-
return t.length > 0 ? t
|
|
95
|
+
let t = Array.from(this.querySelectorAll("wje-tab[active]"));
|
|
96
|
+
return t.length > 0 ? t : null;
|
|
97
97
|
}
|
|
98
98
|
/**
|
|
99
99
|
* Returns all tabs.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wj-elements",
|
|
3
3
|
"description": "WebJET Elements is a modern set of user interface tools harnessing the power of web components designed to simplify web application development.",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.53",
|
|
5
5
|
"homepage": "https://github.com/lencys/wj-elements",
|
|
6
6
|
"author": "Lukáš Ondrejček <lukas.ondrejcek@gmail.com>",
|
|
7
7
|
"license": "MIT",
|