shlomiassaf / ngx-modialog

Modal / Dialog for Angular
http://shlomiassaf.github.io/ngx-modialog
MIT License
686 stars 241 forks source link

When i write in some input the function BeforeDismiss run #353

Open JuanDoctorJekyll opened 7 years ago

JuanDoctorJekyll commented 7 years ago

Hi, i am in the modal but when i write something in the input into the Modal the function beforeDismiss run and close the modal. i am use the example:

import { Component } from '@angular/core';

import { DialogRef, ModalComponent, CloseGuard } from 'angular2-modal'; import { BSModalContext } from 'angular2-modal/plugins/bootstrap/index';

export class CustomModalContext extends BSModalContext { public num1: number; public num2: number; }

/**

i want that if you click out the modal this close, thank you.

Faris-AH commented 7 years ago

Any Luck @JuanDoctorJekyll ?

Darrieta05 commented 7 years ago

onKeyUp(value) { this.dialog.close(); }

^ Here's why