gd-bs 6.1.7 → 6.1.8

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/index.html CHANGED
@@ -1166,7 +1166,7 @@
1166
1166
  imageUrl: "https://via.placeholder.com/400x200",
1167
1167
  imageAlt: "First Slide",
1168
1168
  isActive: true
1169
- }/*, {
1169
+ }, {
1170
1170
  captions: "<h5>Second Slide</h5>",
1171
1171
  imageUrl: "https://via.placeholder.com/400x200",
1172
1172
  imageAlt: "Second Slide"
@@ -1176,7 +1176,7 @@
1176
1176
  imageAlt: "Third Slide"
1177
1177
  }, {
1178
1178
  content: "<h1>Header</h1><h3>Title</h3><p>Content</p>"
1179
- }*/]
1179
+ }]
1180
1180
  });
1181
1181
  window["collapse"] = GD.Components.Collapse({
1182
1182
  el: document.querySelector("#collapse"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gd-bs",
3
- "version": "6.1.7",
3
+ "version": "6.1.8",
4
4
  "description": "Bootstrap JavaScript, TypeScript and Web Components library.",
5
5
  "main": "build/index.js",
6
6
  "typings": "src/index.d.ts",
@@ -153,8 +153,8 @@ class _Carousel extends Base<ICarouselProps> implements ICarousel {
153
153
  // See if we are rendering controls
154
154
  if (this.props.enableControls) {
155
155
  // Configure the controls
156
- nextControl ? nextControl.href = "#" + this.el.id : null;
157
- prevControl ? prevControl.href = "#" + this.el.id : null;
156
+ nextControl ? nextControl.setAttribute("data-bs-target", "#" + this.el.id) : null;
157
+ prevControl ? prevControl.setAttribute("data-bs-target", "#" + this.el.id) : null;
158
158
 
159
159
  // Set the click event
160
160
  nextControl.addEventListener("click", ev => { ev.preventDefault(); this.next(); })
@@ -3,14 +3,14 @@ export const HTML = `
3
3
  <div class="carousel slide" data-bs-ride="carousel">
4
4
  <div class="carousel-indicators"></div>
5
5
  <div class="carousel-inner"></div>
6
- <a class="carousel-control-prev" href="#" role="button" data-bs-slide="prev">
6
+ <button class="carousel-control-prev" type="button" data-bs-slide="prev">
7
7
  <span class="carousel-control-prev-icon" aria-hidden="true"></span>
8
8
  <span class="visually-hidden">Previous</span>
9
- </a>
10
- <a class="carousel-control-next" href="#" role="button" data-bs-slide="next">
9
+ </button>
10
+ <button class="carousel-control-next" type="button" data-bs-slide="next">
11
11
  <span class="carousel-control-next-icon" aria-hidden="true"></span>
12
12
  <span class="visually-hidden">Next</span>
13
- </a>
13
+ </button>
14
14
  </div>`.trim();
15
15
 
16
16
  // Carousel Item