@creative-web-solution/front-library 7.1.45 → 7.1.46
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/CHANGELOG.md +4 -0
- package/Modules/Slider/SliderControls.ts +5 -5
- package/README.md +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -399,19 +399,19 @@ export default class SliderControls {
|
|
|
399
399
|
}
|
|
400
400
|
|
|
401
401
|
|
|
402
|
-
#updateBullets = ( targetSlide:
|
|
402
|
+
#updateBullets = ( targetSlide: FLib.Slider.SlideProperties, currentSlide?: FLib.Slider.SlideProperties ): void => {
|
|
403
403
|
if ( !this.#$bullets ) {
|
|
404
404
|
return;
|
|
405
405
|
}
|
|
406
406
|
|
|
407
|
-
if ( currentSlide && this.#$bullets[ currentSlide.
|
|
408
|
-
const $BULLET = this.#$bullets[ currentSlide.
|
|
407
|
+
if ( currentSlide && this.#$bullets[ currentSlide.pageIndex ] ) {
|
|
408
|
+
const $BULLET = this.#$bullets[ currentSlide.pageIndex ] as HTMLElement;
|
|
409
409
|
$BULLET.setAttribute( 'aria-selected', 'false' );
|
|
410
410
|
$BULLET.setAttribute( 'tabindex', '-1' );
|
|
411
411
|
}
|
|
412
412
|
|
|
413
|
-
if ( targetSlide && this.#$bullets[ targetSlide.
|
|
414
|
-
const $BULLET = this.#$bullets[ targetSlide.
|
|
413
|
+
if ( targetSlide && this.#$bullets[ targetSlide.pageIndex ] ) {
|
|
414
|
+
const $BULLET = this.#$bullets[ targetSlide.pageIndex ] as HTMLElement;
|
|
415
415
|
$BULLET.setAttribute( 'aria-selected', 'true' );
|
|
416
416
|
$BULLET.setAttribute( 'tabindex', '0' );
|
|
417
417
|
}
|
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@creative-web-solution/front-library",
|
|
3
3
|
"title": "Frontend library",
|
|
4
4
|
"description": "Frontend functions and modules",
|
|
5
|
-
"version": "7.1.
|
|
5
|
+
"version": "7.1.46",
|
|
6
6
|
"homepage": "https://github.com/creative-web-solution/front-library",
|
|
7
7
|
"author": "Creative Web Solution <contact@cws-studio.com> (https://www.cws-studio.com)",
|
|
8
8
|
"keywords": [],
|