gd-bs 6.6.63 → 6.6.64

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gd-bs",
3
- "version": "6.6.63",
3
+ "version": "6.6.64",
4
4
  "description": "Bootstrap JavaScript, TypeScript and Web Components library.",
5
5
  "main": "build/index.js",
6
6
  "typings": "src/index.d.ts",
@@ -55,6 +55,12 @@ class _Nav extends Base<INavProps> implements INav {
55
55
  let prevTab: INavLink = null;
56
56
  let newTab: INavLink = link;
57
57
 
58
+ // See if this link is disabled
59
+ if (link.isDisabled) {
60
+ // Do nothing
61
+ return;
62
+ }
63
+
58
64
  // Parse the links
59
65
  for (let i = 0; i < this._links.length; i++) {
60
66
  let link = this._links[i];
@@ -102,6 +102,9 @@ export class NavLink extends Base<INavLinkProps> implements INavLink {
102
102
  // Returns true if the link is active
103
103
  get isActive(): boolean { return this._elLink.classList.contains("active"); }
104
104
 
105
+ // Returns true if the link is disabled
106
+ get isDisabled(): boolean { return this._elLink.classList.contains("disabled"); }
107
+
105
108
  // Gets the tab name
106
109
  get tabName(): string { return this._elLink.innerHTML.trim(); }
107
110
  set tabName(value: string) { this._elLink.innerHTML = (value || "").trim(); }