i got an issue in my smart table
when i try the add
button inside it, the form stay even after a event.confirm.reject();
see picture bellow:
the form, i'm talking about is framed into a red rectangle
here is my code:
component.html:
<ng2-smart-table [settings]="settings" [source]="source" (createConfirm)="addFuction($event)"></ng2-smart-table>
component.ts
addFuction(event) {
if (window.confirm('Are you sure you want to create?')) {
event.newData['libelle'] += ' + added in code';
event.confirm.resolve(event.newData);
} else {
console.log('test');
event.confirm.reject();
}
}