Skip to content

Commit a3bd351

Browse files
committed
Release 9.1.0
1 parent 1d6c7d6 commit a3bd351

File tree

7 files changed

+51
-8
lines changed

7 files changed

+51
-8
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
## 9.1.0 (15.12.2025)
2+
3+
### Fixes and improvements:
4+
5+
- [Carousel](https://mdbootstrap.com/docs/angular/components/carousel/) - fixed problem with infinite page loading when using component in SSR mode
6+
7+
### New features:
8+
9+
- [Calendar](https://mdbootstrap.com/docs/angular/plugins/calendar/) - added new events and methods to enable creation of custom modals to handle adding or editing events
10+
- [Select](https://mdbootstrap.com/docs/angular/forms/select/) - added new `MDB_SELECT_SCROLL_STRATEGY` injection token that allows to change scrolling strategy
11+
- [Autocomplete](https://mdbootstrap.com/docs/angular/forms/autocomplete/) - added new `MDB_AUTOCOMPLETE_SCROLL_STRATEGY` injection token that allows to change scrolling strategy
12+
13+
---
14+
115
## 9.0.0 (21.09.2025)
216

317
This version requires Angular v20. Follow the [Angular Update Guide](https://angular.dev/update-guide) to migrate your project to Angular 20.

README.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MDB 5 Angular
22

3-
Version: FREE 9.0.0
3+
Version: FREE 9.1.0
44

55
Documentation:
66
https://mdbootstrap.com/docs/angular/

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mdb-angular-ui-kit-free",
3-
"version": "9.0.0",
3+
"version": "9.1.0",
44
"scripts": {
55
"ng": "ng",
66
"start": "ng serve",

projects/mdb-angular-ui-kit/CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
## 9.1.0 (15.12.2025)
2+
3+
### Fixes and improvements:
4+
5+
- [Carousel](https://mdbootstrap.com/docs/angular/components/carousel/) - fixed problem with infinite page loading when using component in SSR mode
6+
7+
### New features:
8+
9+
- [Calendar](https://mdbootstrap.com/docs/angular/plugins/calendar/) - added new events and methods to enable creation of custom modals to handle adding or editing events
10+
- [Select](https://mdbootstrap.com/docs/angular/forms/select/) - added new `MDB_SELECT_SCROLL_STRATEGY` injection token that allows to change scrolling strategy
11+
- [Autocomplete](https://mdbootstrap.com/docs/angular/forms/autocomplete/) - added new `MDB_AUTOCOMPLETE_SCROLL_STRATEGY` injection token that allows to change scrolling strategy
12+
13+
---
14+
115
## 9.0.0 (21.09.2025)
216

317
This version requires Angular v20. Follow the [Angular Update Guide](https://angular.dev/update-guide) to migrate your project to Angular 20.

projects/mdb-angular-ui-kit/carousel/carousel.component.ts

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { isPlatformBrowser } from '@angular/common';
12
import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion';
23
import {
34
AfterViewInit,
@@ -9,9 +10,11 @@ import {
910
EventEmitter,
1011
HostBinding,
1112
HostListener,
13+
Inject,
1214
Input,
1315
OnDestroy,
1416
Output,
17+
PLATFORM_ID,
1518
QueryList,
1619
} from '@angular/core';
1720
import { fromEvent, Subject } from 'rxjs';
@@ -128,19 +131,27 @@ export class MdbCarouselComponent implements AfterViewInit, OnDestroy {
128131

129132
@HostBinding('class.d-block') display = true;
130133

131-
constructor(private _elementRef: ElementRef, private _cdRef: ChangeDetectorRef) {}
134+
private _isBrowser: boolean;
135+
136+
constructor(
137+
private _elementRef: ElementRef,
138+
private _cdRef: ChangeDetectorRef,
139+
@Inject(PLATFORM_ID) platformId: string
140+
) {
141+
this._isBrowser = isPlatformBrowser(platformId);
142+
}
132143

133144
ngAfterViewInit(): void {
134145
Promise.resolve().then(() => {
135146
this._setActiveSlide(this._activeSlide);
136147

137-
if (this.interval > 0 && this.ride) {
148+
if (this._isBrowser && this.interval > 0 && this.ride) {
138149
this.play();
139150
}
140151
this._cdRef.markForCheck();
141152
});
142153

143-
if (this.keyboard) {
154+
if (this._isBrowser && this.keyboard) {
144155
fromEvent(this._elementRef.nativeElement, 'keydown')
145156
.pipe(takeUntil(this._destroy$))
146157
.subscribe((event: KeyboardEvent) => {
@@ -168,6 +179,10 @@ export class MdbCarouselComponent implements AfterViewInit, OnDestroy {
168179
}
169180

170181
private _restartInterval(): void {
182+
if (!this._isBrowser) {
183+
return;
184+
}
185+
171186
this._resetInterval();
172187
const activeElement = this.items[this.activeSlide];
173188
const interval = activeElement.interval ? activeElement.interval : this.interval;

projects/mdb-angular-ui-kit/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"homepage": "https://mdbootstrap.com/docs/b5/angular/",
55
"author": "MDBootstrap",
66
"license": "MIT",
7-
"version": "9.0.0",
7+
"version": "9.1.0",
88
"peerDependencies": {
99
"@angular/common": "^20.0.0",
1010
"@angular/core": "^20.0.0",

0 commit comments

Comments
 (0)