Skip to content

Commit 7858180

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

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

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

Lines 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

Lines 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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy