Skip to content

Commit

Permalink
use quick way to fix the close modal animation issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
andy840119 committed Aug 14, 2024
1 parent 6682c25 commit 686c853
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/modal/bs-modal.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,9 @@ export class BsModalService {
.provide({ provide: BsModalRef, useValue: bsModalRef })
.attach(ModalContainerComponent)
.to('body');
bsModalRef.hide = () => this.hide(bsModalRef.id);
// use quick way to fix the animate issue for now
// see: https://github.com/valor-software/ngx-bootstrap/pull/6565
bsModalRef.hide = () => modalContainerRef.instance?.hide();
bsModalRef.setClass = (newClass: string) => {
if (modalContainerRef.instance) {
modalContainerRef.instance.config.class = newClass;
Expand Down

0 comments on commit 686c853

Please sign in to comment.