Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7858180

Browse filesBrowse files
committed
fix(modal): scrollbar disappears on backdrop=false, closes #224 - thanks @tturbs
1 parent 647deba commit 7858180
Copy full SHA for 7858180

File tree

2 files changed

+2
-1
lines changed
Filter options

2 files changed

+2
-1
lines changed

‎projects/coreui-angular/src/lib/form/form-floating/form-floating.directive.ts

Copy file name to clipboardExpand all lines: projects/coreui-angular/src/lib/form/form-floating/form-floating.directive.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { booleanAttribute, Directive, input } from '@angular/core';
77
export class FormFloatingDirective {
88
/**
99
* Enable floating labels
10-
* @type boolean
10+
* @dafault boolean
1111
*/
1212
readonly floating = input(true, { transform: booleanAttribute, alias: 'cFormFloating' });
1313
}

‎projects/coreui-angular/src/lib/modal/modal/modal.component.ts

Copy file name to clipboardExpand all lines: projects/coreui-angular/src/lib/modal/modal/modal.component.ts
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ export class ModalComponent implements OnInit, OnDestroy, AfterViewInit {
261261
setTimeout(() => {
262262
if (event.toState === 'hidden') {
263263
this.#renderer.setStyle(this.#hostElement.nativeElement, 'display', 'none');
264+
this.#backdropService.resetScrollbar();
264265
}
265266
});
266267
this.show = this.visible;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.