Skip to content

Commit

Permalink
bugfix: dialog will be shown on top
Browse files Browse the repository at this point in the history
  • Loading branch information
be-ndee authored and Andreas Bissinger committed Mar 9, 2020
1 parent 039cbe3 commit 8ae61a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ngx-smart-modal/src/services/ngx-smart-modal.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,11 +280,11 @@ export class NgxSmartModalService {
}) as EventListener);

window.addEventListener(NgxSmartModalConfig.prefixEvent + 'open', ((e: CustomEvent) => {
this._openModal(e.detail.instance.modal, e.detail.top);
this._openModal(e.detail.instance.modal, e.detail.extraData.top);
}) as EventListener);

window.addEventListener(NgxSmartModalConfig.prefixEvent + 'toggle', ((e: CustomEvent) => {
this._toggleModal(e.detail.instance.modal, e.detail.top);
this._toggleModal(e.detail.instance.modal, e.detail.extraData.top);
}) as EventListener);

window.addEventListener(NgxSmartModalConfig.prefixEvent + 'close', ((e: CustomEvent) => {
Expand Down

0 comments on commit 8ae61a3

Please sign in to comment.